Skip to content

Commit

Permalink
Add healtcheck for node-registrar
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed Feb 7, 2024
1 parent 310f2e2 commit 0eac7d8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions assets/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ spec:
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
- --http-endpoint=:10304
- --v=${LOG_LEVEL}
lifecycle:
preStop:
Expand All @@ -97,6 +98,17 @@ spec:
value: /csi/csi.sock
- name: DRIVER_REG_SOCK_PATH
value: /var/lib/kubelet/plugins/filestore.csi.storage.gke.io/csi.sock
ports:
- containerPort: 10304
name: rhealthz
livenessProbe:
httpGet:
path: /healthz
port: rhealthz
initialDelaySeconds: 10
timeoutSeconds: 3
periodSeconds: 10
failureThreshold: 5
volumeMounts:
- name: plugin-dir
mountPath: /csi
Expand Down

0 comments on commit 0eac7d8

Please sign in to comment.