Skip to content

Commit

Permalink
Set externalTrafficPolicy as Local for agones-allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
osterante committed Oct 23, 2024
1 parent a27aeab commit 730797d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion install/helm/agones/templates/service/allocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
targetPort: {{ .Values.agones.allocator.service.grpc.targetPort }}
{{- if .Values.agones.allocator.service.grpc.appProtocol }}
appProtocol: {{.Values.agones.allocator.service.grpc.appProtocol}}
{{- end}}
{{- end}}
{{- if eq .Values.agones.allocator.service.serviceType "NodePort" }}
nodePort: {{ .Values.agones.allocator.service.grpc.nodePort }}
{{- end }}
Expand All @@ -79,6 +79,7 @@ spec:
loadBalancerIP: {{ .Values.agones.allocator.service.loadBalancerIP }}
{{- end }}
{{- if eq .Values.agones.allocator.service.serviceType "LoadBalancer" }}
externalTrafficPolicy: {{ .Values.agones.allocator.service.externalTrafficPolicy }}
{{- if .Values.agones.allocator.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{ toYaml .Values.agones.allocator.service.loadBalancerSourceRanges | indent 4 }}
Expand Down
1 change: 1 addition & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ agones:
service:
name: agones-allocator
serviceType: LoadBalancer
externalTrafficPolicy: Local
clusterIP: ""
loadBalancerIP: ""
loadBalancerSourceRanges: []
Expand Down
3 changes: 2 additions & 1 deletion install/yaml/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17404,7 +17404,8 @@ spec:
name: https
targetPort: 8443
protocol: TCP
type: LoadBalancer
type: LoadBalancer
externalTrafficPolicy: Local
---
# Source: agones/templates/service/allocation.yaml
apiVersion: v1
Expand Down

0 comments on commit 730797d

Please sign in to comment.