Skip to content

Commit

Permalink
Make nginx controller container ports configurable (helm#13096)
Browse files Browse the repository at this point in the history
* Make nginx controller container ports configurable

Signed-off-by: ChiefAlexander <alex.harder@fishtech.group>

* Bump chart version

Signed-off-by: ChiefAlexander <alex.harder@fishtech.group>

* Bump version

Signed-off-by: ChiefAlexander <alex.harder@fishtech.group>

* bump version

Signed-off-by: ChiefAlexander <alex.harder@fishtech.group>
  • Loading branch information
ChiefAlexander authored and eyenx committed May 28, 2019
1 parent 20c53f3 commit a4e7d7b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stable/nginx-ingress/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx-ingress
version: 1.6.2
version: 1.6.3
appVersion: 0.24.1
home: https://github.com/kubernetes/ingress-nginx
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
Expand Down
2 changes: 2 additions & 0 deletions stable/nginx-ingress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ Parameter | Description | Default
`controller.image.tag` | controller container image tag | `0.24.1`
`controller.image.pullPolicy` | controller container image pull policy | `IfNotPresent`
`controller.image.runAsUser` | User ID of the controller process. Value depends on the Linux distribution used inside of the container image. By default uses debian one. | `33`
`controller.containerPort.http` | The port that the controller container listens on for http connections. | `80`
`controller.containerPort.https` | The port that the controller container listens on for https connections. | `443`
`controller.config` | nginx ConfigMap entries | none
`controller.hostNetwork` | If the nginx deployment / daemonset should run on the host's network namespace. Do not set this when `controller.service.externalIPs` is set and `kube-proxy` is used as there will be a port-conflict for port `80` | false
`controller.defaultBackendService` | default 404 backend service; required only if `defaultBackend.enabled = false` | `""`
Expand Down
4 changes: 2 additions & 2 deletions stable/nginx-ingress/templates/controller-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ spec:
failureThreshold: {{ .Values.controller.livenessProbe.failureThreshold }}
ports:
- name: http
containerPort: 80
containerPort: {{ .Values.controller.containerPort.http }}
protocol: TCP
{{- if .Values.controller.daemonset.useHostPort }}
hostPort: {{ .Values.controller.daemonset.hostPorts.http }}
{{- end }}
- name: https
containerPort: 443
containerPort: {{ .Values.controller.containerPort.https }}
protocol: TCP
{{- if .Values.controller.daemonset.useHostPort }}
hostPort: {{ .Values.controller.daemonset.hostPorts.https }}
Expand Down
4 changes: 2 additions & 2 deletions stable/nginx-ingress/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ spec:
failureThreshold: {{ .Values.controller.livenessProbe.failureThreshold }}
ports:
- name: http
containerPort: 80
containerPort: {{ .Values.controller.containerPort.http }}
protocol: TCP
- name: https
containerPort: 443
containerPort: {{ .Values.controller.containerPort.https }}
protocol: TCP
{{- if .Values.controller.stats.enabled }}
- name: stats
Expand Down
5 changes: 5 additions & 0 deletions stable/nginx-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ controller:
# www-data -> uid 33
runAsUser: 33

# Configures the ports the nginx-controller listens on
containerPort:
http: 80
https: 443

config: {}
# Will add custom header to Nginx https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/customization/custom-headers
headers: {}
Expand Down

0 comments on commit a4e7d7b

Please sign in to comment.