mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-22 11:25:11 -02:30
updated to direct control over ipip
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
shell: >
|
||||
echo '{
|
||||
"kind": "ipPool",
|
||||
"spec": {"disabled": false, "ipip": {"enabled": {{ calico_ipip is defined | ternary(calico_ipip, cloud_provider is defined) }}},
|
||||
"spec": {"disabled": false, "ipip": {"enabled": {{ ipip }}},
|
||||
"nat-outgoing": {{ nat_outgoing|default(false) and not peer_with_router|default(false) }}},
|
||||
"apiVersion": "v1",
|
||||
"metadata": {"cidr": "{{ kube_pods_subnet }}"}
|
||||
@@ -110,8 +110,7 @@
|
||||
run_once: true
|
||||
set_fact:
|
||||
ipip_arg: "--ipip"
|
||||
when: (legacy_calicoctl and
|
||||
calico_ipip is defined | ternary (calico_ipip, cloud_provider is defined))
|
||||
when: (legacy_calicoctl and ipip )
|
||||
tags: facts
|
||||
|
||||
- name: Calico (old) | Define nat-outgoing pool argument
|
||||
|
||||
Reference in New Issue
Block a user