Expose TCP and UCP service as hostPorts in daemonsets. (#14171)

When controller.daemonset.useHostPort is enabled

Signed-off-by: Fernando Llaca <ferllarom@gmail.com>
This commit is contained in:
Fernando Llaca
2019-05-28 12:52:57 -07:00
committed by Kubernetes Prow Robot
parent 6ac38493ee
commit 645bccadd3
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx-ingress
version: 1.6.14
version: 1.6.15
appVersion: 0.24.1
home: https://github.com/kubernetes/ingress-nginx
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
@@ -144,11 +144,17 @@ spec:
- name: "{{ $key }}-tcp"
containerPort: {{ $key }}
protocol: TCP
{{- if .Values.controller.daemonset.useHostPort }}
hostPort: {{ $key }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.udp }}
- name: "{{ $key }}-udp"
containerPort: {{ $key }}
protocol: UDP
{{- if .Values.controller.daemonset.useHostPort }}
hostPort: {{ $key }}
{{- end }}
{{- end }}
readinessProbe:
httpGet: