feat: use new restricted liveness probe endpoint on v4.6.0

fix
This commit is contained in:
andyzhangx 2024-04-01 02:25:50 +00:00
parent deced01b5d
commit 330aaba137
3 changed files with 6 additions and 12 deletions

View File

@ -100,7 +100,7 @@ spec:
args: args:
- --csi-address=/csi/csi.sock - --csi-address=/csi/csi.sock
- --probe-timeout=3s - --probe-timeout=3s
- --health-port={{ .Values.controller.livenessProbe.healthPort }} - --http-endpoint=localhost:{{ .Values.controller.livenessProbe.healthPort }}
- --v=2 - --v=2
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }} imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
volumeMounts: volumeMounts:
@ -137,15 +137,12 @@ spec:
fieldPath: spec.nodeName fieldPath: spec.nodeName
- name: CSI_ENDPOINT - name: CSI_ENDPOINT
value: unix:///csi/csi.sock value: unix:///csi/csi.sock
ports:
- containerPort: {{ .Values.controller.livenessProbe.healthPort }}
name: healthz
protocol: TCP
livenessProbe: livenessProbe:
failureThreshold: 5 failureThreshold: 5
httpGet: httpGet:
host: localhost
path: /healthz path: /healthz
port: healthz port: {{ .Values.controller.livenessProbe.healthPort }}
initialDelaySeconds: 30 initialDelaySeconds: 30
timeoutSeconds: 10 timeoutSeconds: 10
periodSeconds: 30 periodSeconds: 30

View File

@ -52,7 +52,7 @@ spec:
args: args:
- --csi-address=/csi/csi.sock - --csi-address=/csi/csi.sock
- --probe-timeout=3s - --probe-timeout=3s
- --health-port={{ .Values.node.livenessProbe.healthPort }} - --http-endpoint=localhost:{{ .Values.node.livenessProbe.healthPort }}
- --v=2 - --v=2
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }} imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
volumeMounts: volumeMounts:
@ -118,15 +118,12 @@ spec:
fieldPath: spec.nodeName fieldPath: spec.nodeName
- name: CSI_ENDPOINT - name: CSI_ENDPOINT
value: unix:///csi/csi.sock value: unix:///csi/csi.sock
ports:
- containerPort: {{ .Values.node.livenessProbe.healthPort }}
name: healthz
protocol: TCP
livenessProbe: livenessProbe:
failureThreshold: 5 failureThreshold: 5
httpGet: httpGet:
host: localhost
path: /healthz path: /healthz
port: healthz port: {{ .Values.node.livenessProbe.healthPort }}
initialDelaySeconds: 30 initialDelaySeconds: 30
timeoutSeconds: 10 timeoutSeconds: 10
periodSeconds: 30 periodSeconds: 30