Skip to content
Snippets Groups Projects
Commit 637f445c authored by Brad Beam's avatar Brad Beam Committed by GitHub
Browse files

Merge pull request #1365 from AtzeDeVries/master

Give more control over IPIP, but with same default behaviour
parents d0e4cf58 e1600188
No related branches found
No related tags found
No related merge requests found
...@@ -71,6 +71,7 @@ kube_users: ...@@ -71,6 +71,7 @@ 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
# Enable kubernetes network policies # Enable kubernetes network policies
enable_network_policy: false enable_network_policy: false
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
nat_outgoing: true nat_outgoing: true
# Use IP-over-IP encapsulation across hosts # Use IP-over-IP encapsulation across hosts
ipip: false ipip: true
ipip_mode: always # change to "cross-subnet" if you only want ipip encapsulation on traffic going across subnets ipip_mode: always # change to "cross-subnet" if you only want ipip encapsulation on traffic going across subnets
# 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
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
shell: > shell: >
echo '{ echo '{
"kind": "ipPool", "kind": "ipPool",
"spec": {"disabled": false, "ipip": {"enabled": {{ cloud_provider is defined or ipip }}, "mode": "{{ ipip_mode }}"}, "spec": {"disabled": false, "ipip": {"enabled": {{ ipip }}, "mode": "{{ ipip_mode }}"},
"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 @@ ...@@ -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 )
cloud_provider is defined or ipip)
tags: facts tags: facts
- name: Calico (old) | Define nat-outgoing pool argument - name: Calico (old) | Define nat-outgoing pool argument
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment