mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -26,6 +26,10 @@ controller:
|
||||
daemonset:
|
||||
useHostPort: false
|
||||
|
||||
hostPorts:
|
||||
http: 80
|
||||
https: 443
|
||||
|
||||
## Required only if defaultBackend.enabled = false
|
||||
## Must be <namespace>/<service_name>
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user