From 729f822ee6bd10683b9ec3b9729e1b0ab87ece57 Mon Sep 17 00:00:00 2001 From: Suraj Deshmukh Date: Wed, 12 Feb 2020 14:27:11 +0530 Subject: [PATCH] kubelet-ds: Add liveness and readiness probes Signed-off-by: Suraj Deshmukh --- .../resources/charts/kubelet/templates/kubelet-ds.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bootkube/resources/charts/kubelet/templates/kubelet-ds.yaml b/bootkube/resources/charts/kubelet/templates/kubelet-ds.yaml index f177b446..bdf2fb55 100644 --- a/bootkube/resources/charts/kubelet/templates/kubelet-ds.yaml +++ b/bootkube/resources/charts/kubelet/templates/kubelet-ds.yaml @@ -43,6 +43,7 @@ spec: --network-plugin=cni \ --pod-manifest-path=/etc/kubernetes/manifests \ --read-only-port=0 \ + --healthz-bind-address=$(HOST_IP) \ --volume-plugin-dir=/var/lib/kubelet/volumeplugins \ --node-labels=$(grep NODE_LABELS /etc/kubernetes/kubelet.env | cut -d'"' -f2) \ --register-with-taints=$(grep NODE_TAINTS /etc/kubernetes/kubelet.env | cut -d'"' -f2) @@ -56,6 +57,14 @@ spec: fieldPath: status.hostIP securityContext: privileged: true + livenessProbe: + httpGet: + path: /healthz + port: 10248 + readinessProbe: + httpGet: + path: /healthz + port: 10248 volumeMounts: - mountPath: /var/lib/cni name: coreos-var-lib-cni