Skip to content

Commit

Permalink
Merge pull request #2259 from andyzhangx/http-endpoint-1.29
Browse files Browse the repository at this point in the history
[release-1.29] feat: use new restricted liveness probe endpoint
  • Loading branch information
andyzhangx committed Apr 10, 2024
2 parents d420eba + b8af4d4 commit 30d9231
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 22 deletions.
Binary file modified charts/latest/azuredisk-csi-driver-v1.29.4.tgz
Binary file not shown.
Expand Up @@ -158,7 +158,7 @@ spec:
args:
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --health-port={{ .Values.controller.livenessProbe.healthPort }}
- --http-endpoint=localhost:{{ .Values.controller.livenessProbe.healthPort }}
- --v=2
volumeMounts:
- name: socket-dir
Expand Down Expand Up @@ -200,17 +200,15 @@ spec:
- "--enable-otel-tracing={{ .Values.controller.otelTracing.enabled }}"
- "--check-disk-lun-collision=true"
ports:
- containerPort: {{ .Values.controller.livenessProbe.healthPort }}
name: healthz
protocol: TCP
- containerPort: {{ .Values.controller.metricsPort }}
name: metrics
protocol: TCP
livenessProbe:
failureThreshold: 5
httpGet:
host: localhost
path: /healthz
port: healthz
port: {{ .Values.controller.livenessProbe.healthPort }}
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 30
Expand Down
Expand Up @@ -75,7 +75,7 @@ spec:
args:
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --health-port={{ .Values.node.livenessProbe.healthPort }}
- --http-endpoint=localhost:{{ .Values.node.livenessProbe.healthPort }}
- --v=2
resources: {{- toYaml .Values.linux.resources.livenessProbe | nindent 12 }}
- name: node-driver-registrar
Expand Down Expand Up @@ -131,15 +131,12 @@ spec:
- "--get-node-info-from-labels={{ .Values.linux.getNodeInfoFromLabels }}"
- "--get-nodeid-from-imds={{ .Values.node.getNodeIDFromIMDS }}"
- "--enable-otel-tracing={{ .Values.linux.otelTracing.enabled }}"
ports:
- containerPort: {{ .Values.node.livenessProbe.healthPort }}
name: healthz
protocol: TCP
livenessProbe:
failureThreshold: 5
httpGet:
host: localhost
path: /healthz
port: healthz
port: {{ .Values.node.livenessProbe.healthPort }}
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 30
Expand Down
8 changes: 3 additions & 5 deletions deploy/csi-azuredisk-controller.yaml
Expand Up @@ -129,7 +129,7 @@ spec:
args:
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --health-port=29602
- --http-endpoint=localhost:29602
- --v=2
volumeMounts:
- name: socket-dir
Expand All @@ -151,17 +151,15 @@ spec:
- "--disable-avset-nodes=false"
- "--allow-empty-cloud-config=false"
ports:
- containerPort: 29602
name: healthz
protocol: TCP
- containerPort: 29604
name: metrics
protocol: TCP
livenessProbe:
failureThreshold: 5
httpGet:
host: localhost
path: /healthz
port: healthz
port: 29602
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 30
Expand Down
9 changes: 3 additions & 6 deletions deploy/csi-azuredisk-node.yaml
Expand Up @@ -46,7 +46,7 @@ spec:
args:
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --health-port=29603
- --http-endpoint=localhost:29603
- --v=2
resources:
limits:
Expand Down Expand Up @@ -94,15 +94,12 @@ 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:
host: localhost
path: /healthz
port: healthz
port: 29603
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 30
Expand Down

0 comments on commit 30d9231

Please sign in to comment.