Skip to content

Commit 09c763a

Browse files
committed
feat: add registrar liveness probe on Linux
1 parent 1811d09 commit 09c763a

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
16 Bytes
Binary file not shown.

charts/latest/csi-driver-smb/templates/csi-smb-node.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ spec:
7272
preStop:
7373
exec:
7474
command: ["/bin/sh", "-c", "rm -rf /registration/{{ .Values.driver.name }}-reg.sock /csi/csi.sock"]
75+
livenessProbe:
76+
exec:
77+
command:
78+
- /csi-node-driver-registrar
79+
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
80+
- --mode=kubelet-registration-probe
81+
initialDelaySeconds: 30
82+
timeoutSeconds: 15
7583
env:
7684
- name: ADDRESS
7785
value: /csi/csi.sock

deploy/csi-smb-node.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ spec:
5252
preStop:
5353
exec:
5454
command: ["/bin/sh", "-c", "rm -rf /registration/smb.csi.k8s.io-reg.sock /csi/csi.sock"]
55+
livenessProbe:
56+
exec:
57+
command:
58+
- /csi-node-driver-registrar
59+
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
60+
- --mode=kubelet-registration-probe
61+
initialDelaySeconds: 30
62+
timeoutSeconds: 15
5563
env:
5664
- name: ADDRESS
5765
value: /csi/csi.sock

0 commit comments

Comments
 (0)