Skip to content
Snippets Groups Projects
Commit 9d069d54 authored by Smaine Kahlouch's avatar Smaine Kahlouch Committed by GitHub
Browse files

Merge pull request #530 from adidenko/fix-calico-cluster-ip

Add support for --masquerade-all in kube-proxy
parents 016b7893 fb0ee9d8
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,9 @@ kube_resolv_conf: "/etc/resolv.conf"
kube_proxy_mode: iptables
# If using the pure iptables proxy, SNAT everything
kube_proxy_masquerade_all: true
# kube_api_runtime_config:
# - extensions/v1beta1/daemonsets=true
# - extensions/v1beta1/deployments=true
......@@ -18,6 +18,9 @@ spec:
{% endif %}
- --bind-address={{ ip | default(ansible_default_ipv4.address) }}
- --proxy-mode={{ kube_proxy_mode }}
{% if kube_proxy_masquerade_all and kube_proxy_mode == "iptables" %}
- --masquerade-all
{% endif %}
securityContext:
privileged: true
volumeMounts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment