mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Add --ipip to calico if on cloud_proivder
This commit is contained in:
@@ -4,3 +4,5 @@
|
|||||||
|
|
||||||
## interface that should be used for flannel operations
|
## interface that should be used for flannel operations
|
||||||
# flannel_interface:
|
# flannel_interface:
|
||||||
|
|
||||||
|
# cloud_provider: no
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: Calico | Configure calico network pool
|
- name: Calico | Configure calico network pool
|
||||||
shell: calicoctl pool add {{ kube_pods_subnet }}
|
command: calicoctl pool add {{ kube_pods_subnet }} {%- if cloud_provider is defined and cloud_provider == True -%} --ipip{%- endif -%}
|
||||||
run_once: true
|
run_once: true
|
||||||
when: calico_conf.status == 404
|
when: calico_conf.status == 404
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user