File tree 4 files changed +28
-2
lines changed
azurefile-csi-driver/templates
azurefile-csi-driver/templates
4 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,11 @@ spec:
135
135
args :
136
136
- --csi-address=/csi/csi.sock
137
137
- --probe-timeout=3s
138
+ {{- if eq .Values.controller.hostNetwork true }}
138
139
- --http-endpoint=localhost:{{ .Values.controller.livenessProbe.healthPort }}
140
+ {{- else }}
141
+ - --health-port={{ .Values.controller.livenessProbe.healthPort }}
142
+ {{- end }}
139
143
- --v=2
140
144
imagePullPolicy : {{ .Values.image.livenessProbe.pullPolicy }}
141
145
volumeMounts :
@@ -163,12 +167,21 @@ spec:
163
167
- containerPort : {{ .Values.controller.metricsPort }}
164
168
name : metrics
165
169
protocol : TCP
170
+ {{- if ne .Values.controller.hostNetwork true }}
171
+ - containerPort : {{ .Values.controller.livenessProbe.healthPort }}
172
+ name : healthz
173
+ protocol : TCP
174
+ {{- end }}
166
175
livenessProbe :
167
176
failureThreshold : 5
168
177
httpGet :
169
- host : localhost
170
178
path : /healthz
179
+ {{- if eq .Values.controller.hostNetwork true }}
180
+ host : localhost
171
181
port : {{ .Values.controller.livenessProbe.healthPort }}
182
+ {{- else }}
183
+ port : healthz
184
+ {{- end }}
172
185
initialDelaySeconds : 30
173
186
timeoutSeconds : 10
174
187
periodSeconds : 30
Original file line number Diff line number Diff line change @@ -135,7 +135,11 @@ spec:
135
135
args :
136
136
- --csi-address=/csi/csi.sock
137
137
- --probe-timeout=3s
138
+ {{- if eq .Values.controller.hostNetwork true }}
138
139
- --http-endpoint=localhost:{{ .Values.controller.livenessProbe.healthPort }}
140
+ {{- else }}
141
+ - --health-port={{ .Values.controller.livenessProbe.healthPort }}
142
+ {{- end }}
139
143
- --v=2
140
144
imagePullPolicy : {{ .Values.image.livenessProbe.pullPolicy }}
141
145
volumeMounts :
@@ -163,12 +167,21 @@ spec:
163
167
- containerPort : {{ .Values.controller.metricsPort }}
164
168
name : metrics
165
169
protocol : TCP
170
+ {{- if ne .Values.controller.hostNetwork true }}
171
+ - containerPort : {{ .Values.controller.livenessProbe.healthPort }}
172
+ name : healthz
173
+ protocol : TCP
174
+ {{- end }}
166
175
livenessProbe :
167
176
failureThreshold : 5
168
177
httpGet :
169
- host : localhost
170
178
path : /healthz
179
+ {{- if eq .Values.controller.hostNetwork true }}
180
+ host : localhost
171
181
port : {{ .Values.controller.livenessProbe.healthPort }}
182
+ {{- else }}
183
+ port : healthz
184
+ {{- end }}
172
185
initialDelaySeconds : 30
173
186
timeoutSeconds : 10
174
187
periodSeconds : 30
You can’t perform that action at this time.
0 commit comments