Add support for hostPort in Deployment
This commit is contained in:
parent
4b78884fc4
commit
19c4c5652d
3 changed files with 11 additions and 8 deletions
|
|
@ -137,6 +137,9 @@ spec:
|
|||
- name: {{ $key }}
|
||||
containerPort: {{ $value }}
|
||||
protocol: TCP
|
||||
{{- if $.Values.controller.useHostPort }}
|
||||
hostPort: {{ index $.Values.controller.hostPorts $key | default $value }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.metrics.enabled }}
|
||||
- name: metrics
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue