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 Dec 19, 2024
1 parent 8166704 commit 781e4bd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 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
12 changes: 12 additions & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ agones:
loadBalancerIP: ""
loadBalancerSourceRanges: []
annotations: {}
# ipFamilyPolicy: RequireDualStack
# ipFamilies:
# - IPv4
# - IPv6
udp:
expose: true
rateLimit: 20
Expand All @@ -195,6 +199,10 @@ agones:
loadBalancerIP: ""
loadBalancerSourceRanges: []
annotations: {}
# ipFamilyPolicy: RequireDualStack
# ipFamilies:
# - IPv4
# - IPv6
healthCheck:
initialDelaySeconds: 3
periodSeconds: 3
Expand Down Expand Up @@ -238,6 +246,10 @@ agones:
loadBalancerIP: ""
loadBalancerSourceRanges: []
annotations: {}
# ipFamilyPolicy: RequireDualStack
# ipFamilies:
# - IPv4
# - IPv6
http:
enabled: true
appProtocol: ""
Expand Down

0 comments on commit 781e4bd

Please sign in to comment.