Add health check to kube proxy (#2356)

Adding health checking to kube proxy. Fixes #2308
This commit is contained in:
Andreas Krüger 2018-02-21 21:14:45 +01:00 committed by Matthew Mosesohn
parent d84ff06f73
commit 42a0f46268

View file

@ -23,6 +23,16 @@ spec:
requests:
cpu: {{ kube_proxy_cpu_requests }}
memory: {{ kube_proxy_memory_requests }}
livenessProbe:
httpGet:
host: 127.0.0.1
path: /healthz
port: 10256
failureThreshold: 8
initialDelaySeconds: 15
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 15
command:
- /hyperkube
- proxy
@ -32,6 +42,7 @@ spec:
- --cluster-cidr={{ kube_pods_subnet }}
- --proxy-mode={{ kube_proxy_mode }}
- --oom-score-adj=-998
- --healthz-bind-address=127.0.0.1
{% if kube_proxy_masquerade_all and kube_proxy_mode == "iptables" %}
- --masquerade-all
{% elif kube_proxy_mode == 'ipvs' %}