Skip to content
Snippets Groups Projects
Commit 42a0f462 authored by Andreas Krüger's avatar Andreas Krüger Committed by Matthew Mosesohn
Browse files

Add health check to kube proxy (#2356)

Adding health checking to kube proxy. Fixes #2308
parent d84ff06f
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,16 @@ spec: ...@@ -23,6 +23,16 @@ spec:
requests: requests:
cpu: {{ kube_proxy_cpu_requests }} cpu: {{ kube_proxy_cpu_requests }}
memory: {{ kube_proxy_memory_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: command:
- /hyperkube - /hyperkube
- proxy - proxy
...@@ -32,6 +42,7 @@ spec: ...@@ -32,6 +42,7 @@ spec:
- --cluster-cidr={{ kube_pods_subnet }} - --cluster-cidr={{ kube_pods_subnet }}
- --proxy-mode={{ kube_proxy_mode }} - --proxy-mode={{ kube_proxy_mode }}
- --oom-score-adj=-998 - --oom-score-adj=-998
- --healthz-bind-address=127.0.0.1
{% if kube_proxy_masquerade_all and kube_proxy_mode == "iptables" %} {% if kube_proxy_masquerade_all and kube_proxy_mode == "iptables" %}
- --masquerade-all - --masquerade-all
{% elif kube_proxy_mode == 'ipvs' %} {% elif kube_proxy_mode == 'ipvs' %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment