Skip to content

Commit

Permalink
Add allocateLoadBalancerNodePorts to gateway helm (#48762)
Browse files Browse the repository at this point in the history
* add allocateLoadBalancerNodePorts to gateway helm

* add releasenotes
  • Loading branch information
hanxiaop authored Jan 11, 2024
1 parent 9500f62 commit 0fe7f26
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/charts/gateway/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ spec:
{{- with .Values.service.loadBalancerIP }}
loadBalancerIP: "{{ . }}"
{{- end }}
{{- if eq .Values.service.type "LoadBalancer" }}
{{- if hasKey .Values.service "allocateLoadBalancerNodePorts" }}
allocateLoadBalancerNodePorts: {{ .Values.service.allocateLoadBalancerNodePorts }}
{{- end }}
{{- end }}
{{- if .Values.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions manifests/charts/gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ defaults:
externalIPs: []
ipFamilyPolicy: ""
ipFamilies: []
## Whether to automatically allocate NodePorts (only for LoadBalancers).
# allocateLoadBalancerNodePorts: false

resources:
requests:
Expand Down
8 changes: 8 additions & 0 deletions releasenotes/notes/48762.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: release-notes/v2
kind: feature
area: installation
issue:
- 48751
releaseNotes:
- |
**Added** `allocateLoadBalancerNodePorts` config option to the Gateway chart.

0 comments on commit 0fe7f26

Please sign in to comment.