File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
config/helm/aws-node-termination-handler/templates Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -178,13 +178,11 @@ spec:
178
178
{{- end }}
179
179
{{- if .Values.enablePrometheusServer }}
180
180
- containerPort : {{ .Values.prometheusServerPort }}
181
- hostPort : {{ .Values.prometheusServerPort }}
182
181
name : http-metrics
183
182
protocol : TCP
184
183
{{- end }}
185
184
{{- if .Values.enableProbesServer }}
186
185
- containerPort : {{ .Values.probesServerPort }}
187
- hostPort : {{ .Values.probesServerPort }}
188
186
name : liveness-probe
189
187
protocol : TCP
190
188
{{- end }}
Original file line number Diff line number Diff line change @@ -12,10 +12,16 @@ spec:
12
12
hostIPC : false
13
13
hostNetwork : {{ .Values.useHostNetwork }}
14
14
hostPID : false
15
- {{- if and .Values.rbac.pspEnabled .Values.enablePrometheusServer }}
15
+ {{- if and (and (not .Values.enableSqsTerminationDraining) .Values.useHostNetwork ) (or .Values.enablePrometheusServer .Values.enableProbesServer) }}
16
16
hostPorts :
17
+ {{- if .Values.enablePrometheusServer }}
17
18
- min : {{ .Values.prometheusServerPort }}
18
19
max : {{ .Values.prometheusServerPort }}
20
+ {{- end }}
21
+ {{- if .Values.enableProbesServer }}
22
+ - min : {{ .Values.probesServerPort }}
23
+ max : {{ .Values.probesServerPort }}
24
+ {{- end }}
19
25
{{- end }}
20
26
readOnlyRootFilesystem : false
21
27
allowPrivilegeEscalation : false
You can’t perform that action at this time.
0 commit comments