updated to direct control over ipip

pull/1365/head
AtzeDeVries 2017-06-23 09:16:05 +02:00
parent 7332679678
commit 61b74f9a5b
3 changed files with 3 additions and 9 deletions

View File

@ -71,10 +71,6 @@ kube_users:
# Can also be set to 'cloud', which lets the cloud provider setup appropriate routing # Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
kube_network_plugin: calico kube_network_plugin: calico
# In case of calico, override default behaviour to enable IPIP. Default behaviour is in case
# of a cloud_provider ipip:true and in case of no cloud provider ipip:false
# calico_ipip: true
# Enable kubernetes network policies # Enable kubernetes network policies
enable_network_policy: false enable_network_policy: false

View File

@ -2,9 +2,8 @@
# Enables Internet connectivity from containers # Enables Internet connectivity from containers
nat_outgoing: true nat_outgoing: true
# !! NOT USED in favour over calico_ipip
# Use IP-over-IP encapsulation across hosts # Use IP-over-IP encapsulation across hosts
# ipip: false ipip: true
# Set to true if you want your calico cni binaries to overwrite the # Set to true if you want your calico cni binaries to overwrite the
# ones from hyperkube while leaving other cni plugins intact. # ones from hyperkube while leaving other cni plugins intact.

View File

@ -94,7 +94,7 @@
shell: > shell: >
echo '{ echo '{
"kind": "ipPool", "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) }}}, "nat-outgoing": {{ nat_outgoing|default(false) and not peer_with_router|default(false) }}},
"apiVersion": "v1", "apiVersion": "v1",
"metadata": {"cidr": "{{ kube_pods_subnet }}"} "metadata": {"cidr": "{{ kube_pods_subnet }}"}
@ -110,8 +110,7 @@
run_once: true run_once: true
set_fact: set_fact:
ipip_arg: "--ipip" ipip_arg: "--ipip"
when: (legacy_calicoctl and when: (legacy_calicoctl and ipip )
calico_ipip is defined | ternary (calico_ipip, cloud_provider is defined))
tags: facts tags: facts
- name: Calico (old) | Define nat-outgoing pool argument - name: Calico (old) | Define nat-outgoing pool argument