8000 Add clusterIP to service if specified in values (#4058) · nginx/kubernetes-ingress@da221ce · GitHub
[go: up one dir, main page]

Skip to content

Commit da221ce

Browse files
Add clusterIP to service if specified in values (#4058)
1 parent ee73d8a commit da221ce

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

deployments/helm-chart/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ The following tables lists the configurable parameters of the NGINX Ingress Cont
271271
|`controller.service.extraLabels` | The extra labels of the service. | {} |
272272
|`controller.service.loadBalancerIP` | The static IP address for the load balancer. Requires `controller.service.type` set to `LoadBalancer`. The cloud provider must support this feature. | "" |
273273
|`controller.service.externalIPs` | The list of external IPs for the Ingress Controller service. | [] |
274+
|`controller.service.clusterIP` | The clusterIP for the Ingress Controller service, autoassigned if not specified. | "" |
274275
|`controller.service.loadBalancerSourceRanges` | The IP ranges (CIDR) that are allowed to access the load balancer. Requires `controller.service.type` set to `LoadBalancer`. The cloud provider must support this feature. | [] |
275276
|`controller.service.name` | The name of the service. | Autogenerated |
276277
|`controller.service.customPorts` | A list of custom ports to expose through the Ingress Controller service. Follows the conventional Kubernetes yaml syntax for service ports. | [] |

deployments/helm-chart/templates/controller-service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ metadata:
1414
{{ toYaml .Values.controller.service.annotations | indent 4 }}
1515
{{- end }}
1616
spec:
17+
{{- if .Values.controller.service.clusterIP }}
18+
clusterIP: {{ .Values.controller.service.clusterIP }}
19+
{{- end }}
1720
{{- if or (eq .Values.controller.service.type "LoadBalancer") (eq .Values.controller.service.type "NodePort") }}
1821
{{- if .Values.controller.service.externalTrafficPolicy }}
1922
externalTrafficPolicy: {{ .Values.controller.service.externalTrafficPolicy }}

deployments/helm-chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ controller:
301301
## The static IP address for the load balancer. Requires controller.service.type set to LoadBalancer. The cloud provider must support this feature.
302302
loadBalancerIP: ""
303303

304+
## The ClusterIP for the Ingress Controller service, autoassigned if not specified.
305+
clusterIP: ""
306+
304307
## The list of external IPs for the Ingress Controller service.
305308
externalIPs: []
306309

0 commit comments

Comments
 (0)
0