mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Adding an option to not open http/https port on LB. (#6128)
* Adding an option to not open http/https port on LB. * Version bump. * Updating as suggested. * Adjusting style. * Bump minor version for new feature
This commit is contained in:
committed by
k8s-ci-robot
parent
2b8977ba9a
commit
bd977dec52
@@ -1,5 +1,5 @@
|
||||
name: nginx-ingress
|
||||
version: 0.20.4
|
||||
version: 0.21.0
|
||||
appVersion: 0.14.0
|
||||
home: https://github.com/kubernetes/ingress-nginx
|
||||
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
|
||||
|
||||
@@ -85,6 +85,8 @@ Parameter | Description | Default
|
||||
`controller.service.healthCheckNodePort` | If `controller.service.type` is `NodePort` or `LoadBalancer` and `controller.service.externalTrafficPolicy` is set to `Local`, set this to [the managed health-check port the kube-proxy will expose](https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typenodeport). If blank, a random port in the `NodePort` range will be assigned | `""`
|
||||
`controller.service.loadBalancerIP` | IP address to assign to load balancer (if supported) | `""`
|
||||
`controller.service.loadBalancerSourceRanges` | list of IP CIDRs allowed access to load balancer (if supported) | `[]`
|
||||
`controller.service.enableHttp` | if port 80 should be opened for service | `true`
|
||||
`controller.service.enableHttps` | if port 443 should be opened for service | `true`
|
||||
`controller.service.targetPorts.http` | Sets the targetPort that maps to the Ingress' port 80 | `80`
|
||||
`controller.service.targetPorts.https` | Sets the targetPort that maps to the Ingress' port 443 | `443`
|
||||
`controller.service.type` | type of controller service to create | `LoadBalancer`
|
||||
|
||||
@@ -35,6 +35,7 @@ spec:
|
||||
healthCheckNodePort: {{ .Values.controller.service.healthCheckNodePort }}
|
||||
{{- end }}
|
||||
ports:
|
||||
{{- if .Values.controller.service.enableHttp }}
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
@@ -42,6 +43,8 @@ spec:
|
||||
{{- if (and (eq .Values.controller.service.type "NodePort") (not (empty .Values.controller.service.nodePorts.http))) }}
|
||||
nodePort: {{ .Values.controller.service.nodePorts.http }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.service.enableHttps }}
|
||||
- name: https
|
||||
port: 443
|
||||
protocol: TCP
|
||||
@@ -49,6 +52,7 @@ spec:
|
||||
{{- if (and (eq .Values.controller.service.type "NodePort") (not (empty .Values.controller.service.nodePorts.https))) }}
|
||||
nodePort: {{ .Values.controller.service.nodePorts.https }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- range $key, $value := .Values.tcp }}
|
||||
- name: "{{ $key }}-tcp"
|
||||
port: {{ $key }}
|
||||
|
||||
@@ -168,6 +168,9 @@ controller:
|
||||
loadBalancerIP: ""
|
||||
loadBalancerSourceRanges: []
|
||||
|
||||
enableHttp: true
|
||||
enableHttps: true
|
||||
|
||||
## Set external traffic policy to: "Local" to preserve source IP on
|
||||
## providers supporting it
|
||||
## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
|
||||
|
||||
Reference in New Issue
Block a user