Skip to content
Snippets Groups Projects
Commit 71347322 authored by Matthew Mosesohn's avatar Matthew Mosesohn
Browse files

Add cluster-cidr to kube-proxy config

This option enables masquerading for traffic directed at pods
that comes frmom outside the cluster.
parent c9769965
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ spec: ...@@ -17,6 +17,7 @@ spec:
- --kubeconfig=/etc/kubernetes/node-kubeconfig.yaml - --kubeconfig=/etc/kubernetes/node-kubeconfig.yaml
{% endif %} {% endif %}
- --bind-address={{ ip | default(ansible_default_ipv4.address) }} - --bind-address={{ ip | default(ansible_default_ipv4.address) }}
- --cluster-cidr={{ kube_pods_subnet }}
- --proxy-mode={{ kube_proxy_mode }} - --proxy-mode={{ kube_proxy_mode }}
{% if kube_proxy_masquerade_all and kube_proxy_mode == "iptables" %} {% if kube_proxy_masquerade_all and kube_proxy_mode == "iptables" %}
- --masquerade-all - --masquerade-all
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment