|
@ -24,14 +24,14 @@ |
|
|
- name: Calico | Enable calico-node |
|
|
- name: Calico | Enable calico-node |
|
|
service: name=calico-node enabled=yes state=started |
|
|
service: name=calico-node enabled=yes state=started |
|
|
|
|
|
|
|
|
- name: Calico | Configure calico-node remove default pool |
|
|
|
|
|
shell: calicoctl pool remove 192.168.0.0/16 |
|
|
|
|
|
|
|
|
- name: Calico | Configure calico-node desired pool |
|
|
|
|
|
shell: calicoctl pool add {{ kube_pods_subnet }} |
|
|
environment: |
|
|
environment: |
|
|
ETCD_AUTHORITY: "{{ groups['kube-master'][0] }}:4001" |
|
|
ETCD_AUTHORITY: "{{ groups['kube-master'][0] }}:4001" |
|
|
run_once: true |
|
|
run_once: true |
|
|
|
|
|
|
|
|
- name: Calico | Configure calico-node desired pool |
|
|
|
|
|
shell: calicoctl pool add {{ kube_pods_subnet }} |
|
|
|
|
|
|
|
|
- name: Calico | Configure calico-node remove default pool |
|
|
|
|
|
shell: calicoctl pool remove 192.168.0.0/16 |
|
|
environment: |
|
|
environment: |
|
|
ETCD_AUTHORITY: "{{ groups['kube-master'][0] }}:4001" |
|
|
ETCD_AUTHORITY: "{{ groups['kube-master'][0] }}:4001" |
|
|
run_once: true |
|
|
run_once: true |
|
|