Variablize kube_proxy_healthz_bind_address

This fixes #3014
This commit is contained in:
Evan Zeimet 2018-07-13 09:15:28 -05:00
parent ca62c75bdf
commit 6a4ce96b7d
2 changed files with 4 additions and 1 deletions

View file

@ -14,6 +14,9 @@ kubelet_bind_address: "{{ ip | default('0.0.0.0') }}"
# resolv.conf to base dns config
kube_resolv_conf: "/etc/resolv.conf"
# bind address for kube-proxy health check
kube_proxy_healthz_bind_address: "127.0.0.1"
# Can be ipvs, iptables
kube_proxy_mode: iptables

View file

@ -42,7 +42,7 @@ spec:
- --cluster-cidr={{ kube_pods_subnet }}
- --proxy-mode={{ kube_proxy_mode }}
- --oom-score-adj=-998
- --healthz-bind-address=127.0.0.1
- --healthz-bind-address={{ kube_proxy_healthz_bind_address }}
{% if kube_proxy_masquerade_all and kube_proxy_mode == "iptables" %}
- --masquerade-all
{% elif kube_proxy_mode == 'ipvs' %}