Skip to content

Commit

Permalink
feat(helm): support dual-stack networking for load balancers
Browse files Browse the repository at this point in the history
  • Loading branch information
bergemalm committed Jan 7, 2025
1 parent 0366002 commit 82f2dc4
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 34 deletions.
12 changes: 12 additions & 0 deletions install/helm/agones/templates/ping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ metadata:
spec:
selector:
agones.dev/role: ping
{{- if .Values.agones.ping.http.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.agones.ping.http.ipFamilyPolicy }}
{{- end }}
{{- if .Values.agones.ping.http.ipFamilies }}
ipFamilies: {{ toYaml .Values.agones.ping.http.ipFamilies | nindent 4 }}
{{- end }}
ports:
- port: {{ .Values.agones.ping.http.port }}
name: http
Expand Down Expand Up @@ -198,6 +204,12 @@ metadata:
spec:
selector:
agones.dev/role: ping
{{- if .Values.agones.ping.udp.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.agones.ping.udp.ipFamilyPolicy }}
{{- end }}
{{- if .Values.agones.ping.udp.ipFamilies }}
ipFamilies: {{ toYaml .Values.agones.ping.udp.ipFamilies | nindent 4 }}
{{- end }}
ports:
- port: {{ .Values.agones.ping.udp.port }}
name: udp
Expand Down
6 changes: 6 additions & 0 deletions install/helm/agones/templates/service/allocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ metadata:
spec:
selector:
multicluster.agones.dev/role: allocator
{{- if .Values.agones.allocator.service.ipFamilyPolicy }}
ipFamilyPolicy: {{ .Values.agones.allocator.service.ipFamilyPolicy }}
{{- end }}
{{- if .Values.agones.allocator.service.ipFamilies }}
ipFamilies: {{ toYaml .Values.agones.allocator.service.ipFamilies | nindent 4 }}
{{- end }}
ports:
{{- if .Values.agones.allocator.service.http.enabled }}
- port: {{ .Values.agones.allocator.service.http.port }}
Expand Down
6 changes: 6 additions & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ agones:
loadBalancerIP: ""
loadBalancerSourceRanges: []
annotations: {}
ipFamilyPolicy: ""
ipFamilies: []
udp:
expose: true
rateLimit: 20
Expand All @@ -195,6 +197,8 @@ agones:
loadBalancerIP: ""
loadBalancerSourceRanges: []
annotations: {}
ipFamilyPolicy: ""
ipFamilies: []
healthCheck:
initialDelaySeconds: 3
periodSeconds: 3
Expand Down Expand Up @@ -238,6 +242,8 @@ agones:
loadBalancerIP: ""
loadBalancerSourceRanges: []
annotations: {}
ipFamilyPolicy: ""
ipFamilies: []
http:
enabled: true
appProtocol: ""
Expand Down
Loading

0 comments on commit 82f2dc4

Please sign in to comment.