Skip to content

Commit 39117b6

Browse files
authored
Merge pull request #40 from FarnazBGH/master
Add node-registar liveness-probe
2 parents 2fa4b25 + 849aebb commit 39117b6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

deploy/k8s/node-daemonset.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ spec:
9090
- "--csi-address=$(ADDRESS)"
9191
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
9292
- "--v=5"
93+
- "--health-port=9809"
94+
livenessProbe:
95+
httpGet:
96+
path: /healthz
97+
port: healthz
98+
failureThreshold: 5
99+
initialDelaySeconds: 60
100+
periodSeconds: 10
101+
successThreshold: 1
102+
timeoutSeconds: 15
93103
env:
94104
- name: ADDRESS
95105
value: /csi/csi.sock
@@ -100,6 +110,9 @@ spec:
100110
mountPath: /csi
101111
- name: registration-dir
102112
mountPath: /registration
113+
ports:
114+
- containerPort: 9809
115+
name: healthz
103116

104117
volumes:
105118
- name: plugin-dir

0 commit comments

Comments
 (0)