Skip to content

Commit 2d08de0

Browse files
authored
feat(chart): Stop using hostPort on deployment (#501)
Signed-off-by: Steve Hipwell <[email protected]>
1 parent ff0d978 commit 2d08de0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

config/helm/aws-node-termination-handler/templates/deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,11 @@ spec:
178178
{{- end }}
179179
{{- if .Values.enablePrometheusServer }}
180180
- containerPort: {{ .Values.prometheusServerPort }}
181-
hostPort: {{ .Values.prometheusServerPort }}
182181
name: http-metrics
183182
protocol: TCP
184183
{{- end }}
185184
{{- if .Values.enableProbesServer }}
186185
- containerPort: {{ .Values.probesServerPort }}
187-
hostPort: {{ .Values.probesServerPort }}
188186
name: liveness-probe
189187
protocol: TCP
190188
{{- end }}

config/helm/aws-node-termination-handler/templates/psp.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ spec:
1212
hostIPC: false
1313
hostNetwork: {{ .Values.useHostNetwork }}
1414
hostPID: false
15-
{{- if and .Values.rbac.pspEnabled .Values.enablePrometheusServer }}
15+
{{- if and (and (not .Values.enableSqsTerminationDraining) .Values.useHostNetwork ) (or .Values.enablePrometheusServer .Values.enableProbesServer) }}
1616
hostPorts:
17+
{{- if .Values.enablePrometheusServer }}
1718
- min: {{ .Values.prometheusServerPort }}
1819
max: {{ .Values.prometheusServerPort }}
20+
{{- end }}
21+
{{- if .Values.enableProbesServer }}
22+
- min: {{ .Values.probesServerPort }}
23+
max: {{ .Values.probesServerPort }}
24+
{{- end }}
1925
{{- end }}
2026
readOnlyRootFilesystem: false
2127
allowPrivilegeEscalation: false

0 commit comments

Comments
 (0)