File tree Expand file tree Collapse file tree 6 files changed +42
-3
lines changed
blob-csi-driver/templates
blob-csi-driver/templates
blob-csi-driver/templates Expand file tree Collapse file tree 6 files changed +42
-3
lines changed Original file line number Diff line number Diff line change 91
91
args :
92
92
- --csi-address=/csi/csi.sock
93
93
- --probe-timeout=3s
94
+ {{- if eq .Values.controller.hostNetwork true }}
94
95
- --http-endpoint=localhost:{{ .Values.controller.livenessProbe.healthPort }}
96
+ {{- else }}
97
+ - --health-port={{ .Values.controller.livenessProbe.healthPort }}
98
+ {{- end }}
95
99
imagePullPolicy : {{ .Values.image.livenessProbe.pullPolicy }}
96
100
volumeMounts :
97
101
- name : socket-dir
@@ -117,12 +121,21 @@ spec:
117
121
- containerPort : {{ .Values.controller.metricsPort }}
118
122
name : metrics
119
123
protocol : TCP
124
+ {{- if ne .Values.controller.hostNetwork true }}
125
+ - containerPort : {{ .Values.controller.livenessProbe.healthPort }}
126
+ name : healthz
127
+ protocol : TCP
128
+ {{- end }}
120
129
livenessProbe :
121
130
failureThreshold : 5
122
131
httpGet :
123
- host : localhost
124
132
path : /healthz
133
+ {{- if eq .Values.controller.hostNetwork true }}
134
+ host : localhost
125
135
port : {{ .Values.controller.livenessProbe.healthPort }}
136
+ {{- else }}
137
+ port : healthz
138
+ {{- end }}
126
139
initialDelaySeconds : 30
127
140
timeoutSeconds : 10
128
141
periodSeconds : 30
Original file line number Diff line number Diff line change 91
91
args :
92
92
- --csi-address=/csi/csi.sock
93
93
- --probe-timeout=3s
94
+ {{- if eq .Values.controller.hostNetwork true }}
94
95
- --http-endpoint=localhost:{{ .Values.controller.livenessProbe.healthPort }}
96
+ {{- else }}
97
+ - --health-port={{ .Values.controller.livenessProbe.healthPort }}
98
+ {{- end }}
95
99
imagePullPolicy : {{ .Values.image.livenessProbe.pullPolicy }}
96
100
volumeMounts :
97
101
- name : socket-dir
@@ -117,12 +121,21 @@ spec:
117
121
- containerPort : {{ .Values.controller.metricsPort }}
118
122
name : metrics
119
123
protocol : TCP
124
+ {{- if ne .Values.controller.hostNetwork true }}
125
+ - containerPort : {{ .Values.controller.livenessProbe.healthPort }}
126
+ name : healthz
127
+ protocol : TCP
128
+ {{- end }}
120
129
livenessProbe :
121
130
failureThreshold : 5
122
131
httpGet :
123
- host : localhost
124
132
path : /healthz
133
+ {{- if eq .Values.controller.hostNetwork true }}
134
+ host : localhost
125
135
port : {{ .Values.controller.livenessProbe.healthPort }}
136
+ {{- else }}
137
+ port : healthz
138
+ {{- end }}
126
139
initialDelaySeconds : 30
127
140
timeoutSeconds : 10
128
141
periodSeconds : 30
Original file line number Diff line number Diff line change 91
91
args :
92
92
- --csi-address=/csi/csi.sock
93
93
- --probe-timeout=3s
94
+ {{- if eq .Values.controller.hostNetwork true }}
94
95
- --http-endpoint=localhost:{{ .Values.controller.livenessProbe.healthPort }}
96
+ {{- else }}
97
+ - --health-port={{ .Values.controller.livenessProbe.healthPort }}
98
+ {{- end }}
95
99
imagePullPolicy : {{ .Values.image.livenessProbe.pullPolicy }}
96
100
volumeMounts :
97
101
- name : socket-dir
@@ -117,12 +121,21 @@ spec:
117
121
- containerPort : {{ .Values.controller.metricsPort }}
118
122
name : metrics
119
123
protocol : TCP
124
+ {{- if ne .Values.controller.hostNetwork true }}
125
+ - containerPort : {{ .Values.controller.livenessProbe.healthPort }}
126
+ name : healthz
127
+ protocol : TCP
128
+ {{- end }}
120
129
livenessProbe :
121
130
failureThreshold : 5
122
131
httpGet :
123
- host : localhost
124
132
path : /healthz
133
+ {{- if eq .Values.controller.hostNetwork true }}
134
+ host : localhost
125
135
port : {{ .Values.controller.livenessProbe.healthPort }}
136
+ {{- else }}
137
+ port : healthz
138
+ {{- end }}
126
139
initialDelaySeconds : 30
127
140
timeoutSeconds : 10
128
141
periodSeconds : 30
You can’t perform that action at this time.
0 commit comments