diff --git a/charts/latest/azuredisk-csi-driver-v1.30.4.tgz b/charts/latest/azuredisk-csi-driver-v1.30.4.tgz index ecb6dbe3a5..1e0bab37aa 100644 Binary files a/charts/latest/azuredisk-csi-driver-v1.30.4.tgz and b/charts/latest/azuredisk-csi-driver-v1.30.4.tgz differ diff --git a/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-node.yaml b/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-node.yaml index 740123b79b..8420fcd30b 100644 --- a/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-node.yaml +++ b/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-node.yaml @@ -75,7 +75,11 @@ spec: args: - --csi-address=/csi/csi.sock - --probe-timeout=3s +{{- if eq .Values.node.hostNetwork true }} - --http-endpoint=localhost:{{ .Values.node.livenessProbe.healthPort }} +{{- else }} + - --health-port={{ .Values.node.livenessProbe.healthPort }} +{{- end }} - --v=2 resources: {{- toYaml .Values.linux.resources.livenessProbe | nindent 12 }} securityContext: @@ -140,12 +144,22 @@ spec: - "--get-node-info-from-labels={{ .Values.linux.getNodeInfoFromLabels }}" - "--get-nodeid-from-imds={{ .Values.node.getNodeIDFromIMDS }}" - "--enable-otel-tracing={{ .Values.linux.otelTracing.enabled }}" +{{- if ne .Values.node.hostNetwork true }} + ports: + - containerPort: {{ .Values.node.livenessProbe.healthPort }} + name: healthz + protocol: TCP +{{- end }} livenessProbe: failureThreshold: 5 httpGet: - host: localhost path: /healthz +{{- if eq .Values.node.hostNetwork true }} + host: localhost port: {{ .Values.node.livenessProbe.healthPort }} +{{- else }} + port: healthz +{{- end }} initialDelaySeconds: 30 timeoutSeconds: 10 periodSeconds: 30 diff --git a/deploy/csi-azuredisk-node.yaml b/deploy/csi-azuredisk-node.yaml index 46976d22fb..6555495284 100644 --- a/deploy/csi-azuredisk-node.yaml +++ b/deploy/csi-azuredisk-node.yaml @@ -102,6 +102,10 @@ spec: - "--enable-perf-optimization=true" - "--allow-empty-cloud-config=true" - "--get-node-info-from-labels=false" + ports: + - containerPort: 29603 + name: healthz + protocol: TCP livenessProbe: failureThreshold: 5 httpGet: