Merge pull request #5249 from aledbf/hostport
Add support for hostPort in Deployment
This commit is contained in:
commit
c2c8af28db
3 changed files with 11 additions and 8 deletions
|
|
@ -137,8 +137,8 @@ spec:
|
|||
- name: {{ $key }}
|
||||
containerPort: {{ $value }}
|
||||
protocol: TCP
|
||||
{{- if $.Values.controller.daemonset.useHostPort }}
|
||||
hostPort: {{ index $.Values.controller.daemonset.hostPorts $key | default $value }}
|
||||
{{- if $.Values.controller.useHostPort }}
|
||||
hostPort: {{ index $.Values.controller.hostPorts $key | default $value }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.metrics.enabled }}
|
||||
|
|
@ -155,7 +155,7 @@ spec:
|
|||
- name: {{ $key }}-tcp
|
||||
containerPort: {{ $key }}
|
||||
protocol: TCP
|
||||
{{- if $.Values.controller.daemonset.useHostPort }}
|
||||
{{- if $.Values.controller.useHostPort }}
|
||||
hostPort: {{ $key }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
@ -163,7 +163,7 @@ spec:
|
|||
- name: {{ $key }}-udp
|
||||
containerPort: {{ $key }}
|
||||
protocol: UDP
|
||||
{{- if $.Values.controller.daemonset.useHostPort }}
|
||||
{{- if $.Values.controller.useHostPort }}
|
||||
hostPort: {{ $key }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue