Browse Source

Add health check to kube proxy (#2356)

Adding health checking to kube proxy. Fixes #2308
pull/2369/head
Andreas Krüger 6 years ago
committed by Matthew Mosesohn
parent
commit
42a0f46268
1 changed files with 11 additions and 0 deletions
  1. 11
      roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2

11
roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2

@ -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' %}

Loading…
Cancel
Save