mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-08 09:57:38 -02:30
Change calico condition --ipip
This commit is contained in:
@@ -26,10 +26,15 @@
|
|||||||
register: calico_conf
|
register: calico_conf
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: Calico | Configure calico network pool
|
- name: Calico | Configure calico network pool for cloud
|
||||||
shell: calicoctl pool add {{ kube_pods_subnet }} {%- if cloud_provider is defined and cloud_provider == True -%} --ipip{%- endif -%}
|
command: "calicoctl pool add {{ kube_pods_subnet }} --ipip"
|
||||||
run_once: true
|
run_once: true
|
||||||
when: calico_conf.status == 404
|
when: calico_conf.status == 404 and cloud_provider is defined and cloud_provider == True
|
||||||
|
|
||||||
|
- name: Calico | Configure calico network pool
|
||||||
|
command: "calicoctl pool add {{ kube_pods_subnet }}"
|
||||||
|
run_once: true
|
||||||
|
when: calico_conf.status == 404 and (cloud_provider is not defined or cloud_provider != True)
|
||||||
|
|
||||||
- name: Calico | Get calico configuration from etcd
|
- name: Calico | Get calico configuration from etcd
|
||||||
uri:
|
uri:
|
||||||
|
|||||||
Reference in New Issue
Block a user