Add portNamePreffix Helm chart parameter (#8458)
Allow user to set custom preffix for TCP and UDP ports
This commit is contained in:
parent
fc58e92b39
commit
61fcca3a3a
9 changed files with 54 additions and 14 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: ingress-nginx
|
name: ingress-nginx
|
||||||
# When the version is modified, make sure the artifacthub.io/changes list is updated
|
# When the version is modified, make sure the artifacthub.io/changes list is updated
|
||||||
# Also update CHANGELOG.md
|
# Also update CHANGELOG.md
|
||||||
version: 4.1.0
|
version: 4.1.1
|
||||||
appVersion: 1.2.0
|
appVersion: 1.2.0
|
||||||
home: https://github.com/kubernetes/ingress-nginx
|
home: https://github.com/kubernetes/ingress-nginx
|
||||||
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
|
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
[ingress-nginx](https://github.com/kubernetes/ingress-nginx) Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
|
[ingress-nginx](https://github.com/kubernetes/ingress-nginx) Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
To use, add `ingressClassName: nginx` spec field or the `kubernetes.io/ingress.class: nginx` annotation to your Ingress resources.
|
To use, add `ingressClassName: nginx` spec field or the `kubernetes.io/ingress.class: nginx` annotation to your Ingress resources.
|
||||||
|
|
||||||
|
@ -478,6 +478,7 @@ Kubernetes: `>=1.19.0-0`
|
||||||
| dhParam | string | `nil` | A base64-encoded Diffie-Hellman parameter. This can be generated with: `openssl dhparam 4096 2> /dev/null | base64` |
|
| dhParam | string | `nil` | A base64-encoded Diffie-Hellman parameter. This can be generated with: `openssl dhparam 4096 2> /dev/null | base64` |
|
||||||
| imagePullSecrets | list | `[]` | Optional array of imagePullSecrets containing private registry credentials |
|
| imagePullSecrets | list | `[]` | Optional array of imagePullSecrets containing private registry credentials |
|
||||||
| podSecurityPolicy.enabled | bool | `false` | |
|
| podSecurityPolicy.enabled | bool | `false` | |
|
||||||
|
| portNamePrefix | string | `""` | Prefix for TCP and UDP ports names in ingress controller service |
|
||||||
| rbac.create | bool | `true` | |
|
| rbac.create | bool | `true` | |
|
||||||
| rbac.scope | bool | `false` | |
|
| rbac.scope | bool | `false` | |
|
||||||
| revisionHistoryLimit | int | `10` | Rollback limit |
|
| revisionHistoryLimit | int | `10` | Rollback limit |
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
controller:
|
||||||
|
kind: DaemonSet
|
||||||
|
image:
|
||||||
|
repository: ingress-controller/controller
|
||||||
|
tag: 1.0.0-dev
|
||||||
|
digest: null
|
||||||
|
admissionWebhooks:
|
||||||
|
enabled: false
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
|
||||||
|
tcp:
|
||||||
|
9000: "default/test:8080"
|
||||||
|
|
||||||
|
udp:
|
||||||
|
9001: "default/test:8080"
|
||||||
|
|
||||||
|
portNamePrefix: "port"
|
|
@ -0,0 +1,17 @@
|
||||||
|
controller:
|
||||||
|
image:
|
||||||
|
repository: ingress-controller/controller
|
||||||
|
tag: 1.0.0-dev
|
||||||
|
digest: null
|
||||||
|
admissionWebhooks:
|
||||||
|
enabled: false
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
|
||||||
|
tcp:
|
||||||
|
9000: "default/test:8080"
|
||||||
|
|
||||||
|
udp:
|
||||||
|
9001: "default/test:8080"
|
||||||
|
|
||||||
|
portNamePrefix: "port"
|
|
@ -131,7 +131,7 @@ spec:
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $key, $value := .Values.tcp }}
|
{{- range $key, $value := .Values.tcp }}
|
||||||
- name: {{ $key }}-tcp
|
- name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
|
||||||
containerPort: {{ $key }}
|
containerPort: {{ $key }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- if $.Values.controller.hostPort.enabled }}
|
{{- if $.Values.controller.hostPort.enabled }}
|
||||||
|
@ -139,7 +139,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $key, $value := .Values.udp }}
|
{{- range $key, $value := .Values.udp }}
|
||||||
- name: {{ $key }}-udp
|
- name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
|
||||||
containerPort: {{ $key }}
|
containerPort: {{ $key }}
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
{{- if $.Values.controller.hostPort.enabled }}
|
{{- if $.Values.controller.hostPort.enabled }}
|
||||||
|
|
|
@ -128,7 +128,7 @@ spec:
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $key, $value := .Values.tcp }}
|
{{- range $key, $value := .Values.tcp }}
|
||||||
- name: {{ $key }}-tcp
|
- name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
|
||||||
containerPort: {{ $key }}
|
containerPort: {{ $key }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- if $.Values.controller.hostPort.enabled }}
|
{{- if $.Values.controller.hostPort.enabled }}
|
||||||
|
@ -136,7 +136,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $key, $value := .Values.udp }}
|
{{- range $key, $value := .Values.udp }}
|
||||||
- name: {{ $key }}-udp
|
- name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
|
||||||
containerPort: {{ $key }}
|
containerPort: {{ $key }}
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
{{- if $.Values.controller.hostPort.enabled }}
|
{{- if $.Values.controller.hostPort.enabled }}
|
||||||
|
|
|
@ -52,10 +52,10 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $key, $value := .Values.tcp }}
|
{{- range $key, $value := .Values.tcp }}
|
||||||
- name: {{ $key }}-tcp
|
- name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
|
||||||
port: {{ $key }}
|
port: {{ $key }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: {{ $key }}-tcp
|
targetPort: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
|
||||||
{{- if $.Values.controller.service.nodePorts.tcp }}
|
{{- if $.Values.controller.service.nodePorts.tcp }}
|
||||||
{{- if index $.Values.controller.service.nodePorts.tcp $key }}
|
{{- if index $.Values.controller.service.nodePorts.tcp $key }}
|
||||||
nodePort: {{ index $.Values.controller.service.nodePorts.tcp $key }}
|
nodePort: {{ index $.Values.controller.service.nodePorts.tcp $key }}
|
||||||
|
@ -63,10 +63,10 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $key, $value := .Values.udp }}
|
{{- range $key, $value := .Values.udp }}
|
||||||
- name: {{ $key }}-udp
|
- name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
|
||||||
port: {{ $key }}
|
port: {{ $key }}
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
targetPort: {{ $key }}-udp
|
targetPort: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
|
||||||
{{- if $.Values.controller.service.nodePorts.udp }}
|
{{- if $.Values.controller.service.nodePorts.udp }}
|
||||||
{{- if index $.Values.controller.service.nodePorts.udp $key }}
|
{{- if index $.Values.controller.service.nodePorts.udp $key }}
|
||||||
nodePort: {{ index $.Values.controller.service.nodePorts.udp $key }}
|
nodePort: {{ index $.Values.controller.service.nodePorts.udp $key }}
|
||||||
|
|
|
@ -74,10 +74,10 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $key, $value := .Values.tcp }}
|
{{- range $key, $value := .Values.tcp }}
|
||||||
- name: {{ $key }}-tcp
|
- name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
|
||||||
port: {{ $key }}
|
port: {{ $key }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: {{ $key }}-tcp
|
targetPort: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
|
||||||
{{- if $.Values.controller.service.nodePorts.tcp }}
|
{{- if $.Values.controller.service.nodePorts.tcp }}
|
||||||
{{- if index $.Values.controller.service.nodePorts.tcp $key }}
|
{{- if index $.Values.controller.service.nodePorts.tcp $key }}
|
||||||
nodePort: {{ index $.Values.controller.service.nodePorts.tcp $key }}
|
nodePort: {{ index $.Values.controller.service.nodePorts.tcp $key }}
|
||||||
|
@ -85,10 +85,10 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $key, $value := .Values.udp }}
|
{{- range $key, $value := .Values.udp }}
|
||||||
- name: {{ $key }}-udp
|
- name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
|
||||||
port: {{ $key }}
|
port: {{ $key }}
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
targetPort: {{ $key }}-udp
|
targetPort: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-udp
|
||||||
{{- if $.Values.controller.service.nodePorts.udp }}
|
{{- if $.Values.controller.service.nodePorts.udp }}
|
||||||
{{- if index $.Values.controller.service.nodePorts.udp $key }}
|
{{- if index $.Values.controller.service.nodePorts.udp $key }}
|
||||||
nodePort: {{ index $.Values.controller.service.nodePorts.udp $key }}
|
nodePort: {{ index $.Values.controller.service.nodePorts.udp $key }}
|
||||||
|
|
|
@ -921,6 +921,10 @@ tcp: {}
|
||||||
udp: {}
|
udp: {}
|
||||||
# 53: "kube-system/kube-dns:53"
|
# 53: "kube-system/kube-dns:53"
|
||||||
|
|
||||||
|
# -- Prefix for TCP and UDP ports names in ingress controller service
|
||||||
|
## Some cloud providers, like Yandex Cloud may have a requirements for a port name regex to support cloud load balancer integration
|
||||||
|
portNamePrefix: ""
|
||||||
|
|
||||||
# -- (string) A base64-encoded Diffie-Hellman parameter.
|
# -- (string) A base64-encoded Diffie-Hellman parameter.
|
||||||
# This can be generated with: `openssl dhparam 4096 2> /dev/null | base64`
|
# This can be generated with: `openssl dhparam 4096 2> /dev/null | base64`
|
||||||
## Ref: https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/ssl-dh-param
|
## Ref: https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/ssl-dh-param
|
||||||
|
|
Loading…
Reference in a new issue