Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
kubelet-ds: Add liveness and readiness probes
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Deshmukh <[email protected]>
  • Loading branch information
surajssd authored and invidian committed Feb 19, 2020
1 parent bbb4a79 commit 729f822
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bootkube/resources/charts/kubelet/templates/kubelet-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 729f822

Please sign in to comment.