Skip to content

Commit

Permalink
Set externalTrafficPolicy as Local for agones-allocator (#4022)
Browse files Browse the repository at this point in the history
* Add externalTrafficPolicy parameter for agones-allocator

* update document

---------
  • Loading branch information
osterante authored Nov 27, 2024
1 parent edde3c3 commit 08bc4c0
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 1 deletion.
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: Cluster
clusterIP: ""
loadBalancerIP: ""
loadBalancerSourceRanges: []
Expand Down
1 change: 1 addition & 0 deletions install/yaml/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17822,6 +17822,7 @@ spec:
targetPort: 8443
protocol: TCP
type: LoadBalancer
externalTrafficPolicy: Cluster
---
# Source: agones/templates/service/allocation.yaml
apiVersion: v1
Expand Down
Loading

0 comments on commit 08bc4c0

Please sign in to comment.