File tree Expand file tree Collapse file tree 4 files changed +28
-2
lines changed
blob-csi-driver/templates
blob-csi-driver/templates Expand file tree Collapse file tree 4 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 9191 args :
9292 - --csi-address=/csi/csi.sock
9393 - --probe-timeout=3s
94+ {{- if eq .Values.controller.hostNetwork true }}
9495 - --http-endpoint=localhost:{{ .Values.controller.livenessProbe.healthPort }}
96+ {{- else }}
97+ - --health-port={{ .Values.controller.livenessProbe.healthPort }}
98+ {{- end }}
9599 imagePullPolicy : {{ .Values.image.livenessProbe.pullPolicy }}
96100 volumeMounts :
97101 - name : socket-dir
@@ -117,12 +121,21 @@ spec:
117121 - containerPort : {{ .Values.controller.metricsPort }}
118122 name : metrics
119123 protocol : TCP
124+ {{- if ne .Values.controller.hostNetwork true }}
125+ - containerPort : {{ .Values.controller.livenessProbe.healthPort }}
126+ name : healthz
127+ protocol : TCP
128+ {{- end }}
120129 livenessProbe :
121130 failureThreshold : 5
122131 httpGet :
123- host : localhost
124132 path : /healthz
133+ {{- if eq .Values.controller.hostNetwork true }}
134+ host : localhost
125135 port : {{ .Values.controller.livenessProbe.healthPort }}
136+ {{- else }}
137+ port : healthz
138+ {{- end }}
126139 initialDelaySeconds : 30
127140 timeoutSeconds : 10
128141 periodSeconds : 30
Original file line number Diff line number Diff line change 9191 args :
9292 - --csi-address=/csi/csi.sock
9393 - --probe-timeout=3s
94+ {{- if eq .Values.controller.hostNetwork true }}
9495 - --http-endpoint=localhost:{{ .Values.controller.livenessProbe.healthPort }}
96+ {{- else }}
97+ - --health-port={{ .Values.controller.livenessProbe.healthPort }}
98+ {{- end }}
9599 imagePullPolicy : {{ .Values.image.livenessProbe.pullPolicy }}
96100 volumeMounts :
97101 - name : socket-dir
@@ -117,12 +121,21 @@ spec:
117121 - containerPort : {{ .Values.controller.metricsPort }}
118122 name : metrics
119123 protocol : TCP
124+ {{- if ne .Values.controller.hostNetwork true }}
125+ - containerPort : {{ .Values.controller.livenessProbe.healthPort }}
126+ name : healthz
127+ protocol : TCP
128+ {{- end }}
120129 livenessProbe :
121130 failureThreshold : 5
122131 httpGet :
123- host : localhost
124132 path : /healthz
133+ {{- if eq .Values.controller.hostNetwork true }}
134+ host : localhost
125135 port : {{ .Values.controller.livenessProbe.healthPort }}
136+ {{- else }}
137+ port : healthz
138+ {{- end }}
126139 initialDelaySeconds : 30
127140 timeoutSeconds : 10
128141 periodSeconds : 30
You can’t perform that action at this time.
0 commit comments