Skip to content

Commit

Permalink
FEATURE/MINOR: kubernetes-ingress: allow setting loadBalancerClass fo…
Browse files Browse the repository at this point in the history
…r the service (#226)

* allow setting loadBalancerClass for the service
  • Loading branch information
aep authored Feb 21, 2024
1 parent 6237054 commit 4254655
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kubernetes-ingress/templates/controller-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,8 @@ spec:
loadBalancerSourceRanges:
{{ toYaml .Values.controller.service.loadBalancerSourceRanges | indent 4 }}
{{- end }}
{{- if .Values.controller.service.loadBalancerClass}}
loadBalancerClass: "{{ .Values.controller.service.loadBalancerClass }}"
{{- end }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions kubernetes-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,10 @@ controller:
# ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/
loadBalancerSourceRanges: []

## Class of load balancer implementation
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
loadBalancerClass: nil

## Service ClusterIP
## ref: https://kubernetes.io/docs/concepts/services-networking/service/
# clusterIP: ""
Expand Down

0 comments on commit 4254655

Please sign in to comment.