mirror of
https://github.com/cristicalin/synology-csi.git
synced 2026-07-29 16:54:27 +00:00
[kube1.23] add health checking to csi-node-driver-registrar
This commit is contained in:
@@ -68,6 +68,7 @@ spec:
|
|||||||
- --v=5
|
- --v=5
|
||||||
- --csi-address=$(ADDRESS) # the csi socket path inside the pod
|
- --csi-address=$(ADDRESS) # the csi socket path inside the pod
|
||||||
- --kubelet-registration-path=$(REGISTRATION_PATH) # the csi socket path on the host node
|
- --kubelet-registration-path=$(REGISTRATION_PATH) # the csi socket path on the host node
|
||||||
|
- --health-port=9809
|
||||||
env:
|
env:
|
||||||
- name: ADDRESS
|
- name: ADDRESS
|
||||||
value: /csi/csi.sock
|
value: /csi/csi.sock
|
||||||
@@ -82,6 +83,15 @@ spec:
|
|||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: registration-dir
|
- name: registration-dir
|
||||||
mountPath: /registration
|
mountPath: /registration
|
||||||
|
ports:
|
||||||
|
- containerPort: 9809
|
||||||
|
name: healthz
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: healthz
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
timeoutSeconds: 5
|
||||||
- name: csi-plugin
|
- name: csi-plugin
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|||||||
Reference in New Issue
Block a user