AVI: Difference between revisions
Content added Content deleted
Line 137: | Line 137: | ||
Either Disable Kube-Proxy(which is default LB in Kubernetes) or Give it a different IP than East_West Subnet. |
Either Disable Kube-Proxy(which is default LB in Kubernetes) or Give it a different IP than East_West Subnet. |
||
= Ansible Playbook to Deploy VS = |
|||
<pre> |
|||
- hosts: localhost |
|||
connection: local |
|||
roles: |
|||
- role: avinetworks.avisdk |
|||
tasks: |
|||
- name: Create a Pool |
|||
avi_pool: |
|||
controller: 10.10.26.40 |
|||
username: admin |
|||
password: Admin@123 |
|||
name: test_aman |
|||
description: test |
|||
state: present |
|||
health_monitor_refs: |
|||
- '/api/healthmonitor?name=System-HTTP' |
|||
servers: |
|||
- ip: |
|||
addr: 10.91.1.53 |
|||
type: V4 |
|||
- name: Create a VS |
|||
avi_virtualservice: |
|||
controller: 10.10.26.40 |
|||
username: admin |
|||
password: Admin@123 |
|||
name: testvs_aman |
|||
description: testvs |
|||
state: present |
|||
api_version: 17.2.7 |
|||
pool_ref: "/api/pool?name=test_aman" |
|||
vip: |
|||
- ip_address: |
|||
addr: '10.91.0.6' |
|||
type: 'V4' |
|||
services: |
|||
- port: 80 |
|||
</pre> |
|||
ansible-playbook -v test2.yml --step |
|||
<br /> |
<br /> |