Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to change externalTrafficPolicy for agones-ping services (http&udp) #4083

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading