From 6037fb426715f2f0c7a4af9ec6ab1fffb89ea4ed Mon Sep 17 00:00:00 2001 From: CALIN Cristian Andrei Date: Sat, 14 May 2022 10:23:16 +0300 Subject: [PATCH] [kube1.23] add health checking to csi-node-driver-registrar --- deploy/kubernetes/v1.23/node.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deploy/kubernetes/v1.23/node.yml b/deploy/kubernetes/v1.23/node.yml index 6b6bf3b..2b8e80b 100644 --- a/deploy/kubernetes/v1.23/node.yml +++ b/deploy/kubernetes/v1.23/node.yml @@ -68,6 +68,7 @@ spec: - --v=5 - --csi-address=$(ADDRESS) # the csi socket path inside the pod - --kubelet-registration-path=$(REGISTRATION_PATH) # the csi socket path on the host node + - --health-port=9809 env: - name: ADDRESS value: /csi/csi.sock @@ -82,6 +83,15 @@ spec: mountPath: /csi - name: registration-dir mountPath: /registration + ports: + - containerPort: 9809 + name: healthz + livenessProbe: + httpGet: + path: /healthz + port: healthz + initialDelaySeconds: 5 + timeoutSeconds: 5 - name: csi-plugin securityContext: privileged: true