Skip to content

Commit

Permalink
Add ability to change externalTrafficPolicy for agones-ping services …
Browse files Browse the repository at this point in the history
…(http&udp) (#4083)
  • Loading branch information
zifter authored Jan 13, 2025
1 parent aa4032d commit 00820f7
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 13 deletions.
6 changes: 4 additions & 2 deletions install/helm/agones/templates/ping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ spec:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- end }}
{{- if .Values.agones.ping.http.expose }}
{{- if .Values.agones.ping.http.expose }}
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -171,14 +171,15 @@ spec:
{{- if .Values.agones.ping.http.loadBalancerIP }}
loadBalancerIP: {{ .Values.agones.ping.http.loadBalancerIP }}
{{- end }}
externalTrafficPolicy: {{ .Values.agones.ping.http.externalTrafficPolicy }}
{{- if .Values.agones.ping.http.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{ toYaml .Values.agones.ping.http.loadBalancerSourceRanges | indent 4 }}
{{- end }}
{{- end }}
{{- end }}

{{- if .Values.agones.ping.udp.expose }}
{{- if .Values.agones.ping.udp.expose }}
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -211,6 +212,7 @@ spec:
{{- if .Values.agones.ping.udp.loadBalancerIP }}
loadBalancerIP: {{ .Values.agones.ping.udp.loadBalancerIP }}
{{- end }}
externalTrafficPolicy: {{ .Values.agones.ping.udp.externalTrafficPolicy }}
{{- if .Values.agones.ping.udp.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{ toYaml .Values.agones.ping.udp.loadBalancerSourceRanges | indent 4 }}
Expand Down
2 changes: 2 additions & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ agones:
nodePort: 0 # nodePort will be used if the serviceType is set to NodePort
serviceType: LoadBalancer
loadBalancerIP: ""
externalTrafficPolicy: Cluster
loadBalancerSourceRanges: []
annotations: {}
udp:
Expand All @@ -193,6 +194,7 @@ agones:
nodePort: 0 # nodePort will be used if the serviceType is set to NodePort
serviceType: LoadBalancer
loadBalancerIP: ""
externalTrafficPolicy: Cluster
loadBalancerSourceRanges: []
annotations: {}
healthCheck:
Expand Down
2 changes: 2 additions & 0 deletions install/yaml/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17727,6 +17727,7 @@ spec:
targetPort: 8080
protocol: TCP
type: LoadBalancer
externalTrafficPolicy: Cluster
---
# Source: agones/templates/ping.yaml
apiVersion: v1
Expand All @@ -17749,6 +17750,7 @@ spec:
targetPort: 8080
protocol: UDP
type: LoadBalancer
externalTrafficPolicy: Cluster
---
# Source: agones/templates/service.yaml
# Copyright 2018 Google LLC All Rights Reserved.
Expand Down
Loading

0 comments on commit 00820f7

Please sign in to comment.