Merge pull request #5249 from aledbf/hostport

Add support for hostPort in Deployment
This commit is contained in:
Kubernetes Prow Robot 2020-03-16 06:26:42 -07:00 committed by GitHub
commit c2c8af28db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 8 deletions

View file

@ -140,6 +140,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