Skip to content

Commit 330aaba

Browse files
committed
feat: use new restricted liveness probe endpoint on v4.6.0
fix
1 parent deced01 commit 330aaba

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed
-18 Bytes
Binary file not shown.

charts/v4.6.0/csi-driver-nfs/templates/csi-nfs-controller.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ spec:
100100
args:
101101
- --csi-address=/csi/csi.sock
102102
- --probe-timeout=3s
103-
- --health-port={{ .Values.controller.livenessProbe.healthPort }}
103+
- --http-endpoint=localhost:{{ .Values.controller.livenessProbe.healthPort }}
104104
- --v=2
105105
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
106106
volumeMounts:
@@ -137,15 +137,12 @@ spec:
137137
fieldPath: spec.nodeName
138138
- name: CSI_ENDPOINT
139139
value: unix:///csi/csi.sock
140-
ports:
141-
- containerPort: {{ .Values.controller.livenessProbe.healthPort }}
142-
name: healthz
143-
protocol: TCP
144140
livenessProbe:
145141
failureThreshold: 5
146142
httpGet:
143+
host: localhost
147144
path: /healthz
148-
port: healthz
145+
port: {{ .Values.controller.livenessProbe.healthPort }}
149146
initialDelaySeconds: 30
150147
timeoutSeconds: 10
151148
periodSeconds: 30

charts/v4.6.0/csi-driver-nfs/templates/csi-nfs-node.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ spec:
5252
args:
5353
- --csi-address=/csi/csi.sock
5454
- --probe-timeout=3s
55-
- --health-port={{ .Values.node.livenessProbe.healthPort }}
55+
- --http-endpoint=localhost:{{ .Values.node.livenessProbe.healthPort }}
5656
- --v=2
5757
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
5858
volumeMounts:
@@ -118,15 +118,12 @@ spec:
118118
fieldPath: spec.nodeName
119119
- name: CSI_ENDPOINT
120120
value: unix:///csi/csi.sock
121-
ports:
122-
- containerPort: {{ .Values.node.livenessProbe.healthPort }}
123-
name: healthz
124-
protocol: TCP
125121
livenessProbe:
126122
failureThreshold: 5
127123
httpGet:
124+
host: localhost
128125
path: /healthz
129-
port: healthz
126+
port: {{ .Values.node.livenessProbe.healthPort }}
130127
initialDelaySeconds: 30
131128
timeoutSeconds: 10
132129
periodSeconds: 30

0 commit comments

Comments
 (0)