[stable/nginx-ingress] Enable custom hostports (#6188)

* [nginx-ingress] add custom host port support

* [nginx-ingress] update README

* version bump
This commit is contained in:
Can Yucel
2018-06-22 01:25:06 -07:00
committed by k8s-ci-robot
parent f3ae504e44
commit 2b8977ba9a
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: nginx-ingress
version: 0.20.3
version: 0.20.4
appVersion: 0.14.0
home: https://github.com/kubernetes/ingress-nginx
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
+2
View File
@@ -64,6 +64,8 @@ Parameter | Description | Default
`controller.extraArgs` | Additional controller container arguments | `{}`
`controller.kind` | install as Deployment or DaemonSet | `Deployment`
`controller.daemonset.useHostPort` | If `controller.kind` is `DaemonSet`, this will enable `hostPort` for TCP/80 and TCP/443 | false
`controller.daemonset.hostPorts.http` | If `controller.daemonset.useHostPort` is `true` and this is non-empty, it sets the hostPort | `"80"`
`controller.daemonset.hostPorts.https` | If `controller.daemonset.useHostPort` is `true` and this is non-empty, it sets the hostPort | `"443"`
`controller.tolerations` | node taints to tolerate (requires Kubernetes >=1.6) | `[]`
`controller.affinity` | node/pod affinities (requires Kubernetes >=1.6) | `{}`
`controller.minReadySeconds` | how many seconds a pod needs to be ready before killing the next, during update | `0`
@@ -102,13 +102,13 @@ spec:
containerPort: 80
protocol: TCP
{{- if .Values.controller.daemonset.useHostPort }}
hostPort: 80
hostPort: {{ .Values.controller.daemonset.hostPorts.http }}
{{- end }}
- name: https
containerPort: 443
protocol: TCP
{{- if .Values.controller.daemonset.useHostPort }}
hostPort: 443
hostPort: {{ .Values.controller.daemonset.hostPorts.https }}
{{- end }}
{{- if .Values.controller.stats.enabled }}
- name: stats
+4
View File
@@ -26,6 +26,10 @@ controller:
daemonset:
useHostPort: false
hostPorts:
http: 80
https: 443
## Required only if defaultBackend.enabled = false
## Must be <namespace>/<service_name>
##