From a4cda572779818c5ec7c3972fff855ed5a3fee4e Mon Sep 17 00:00:00 2001 From: osterant <126444541+osterante@users.noreply.github.com> Date: Thu, 24 Oct 2024 00:40:48 +0900 Subject: [PATCH] Set externalTrafficPolicy as Local for agones-allocator --- install/helm/agones/templates/service/allocation.yaml | 3 ++- install/helm/agones/values.yaml | 1 + install/yaml/install.yaml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/install/helm/agones/templates/service/allocation.yaml b/install/helm/agones/templates/service/allocation.yaml index e360a125d8..8c538029f8 100644 --- a/install/helm/agones/templates/service/allocation.yaml +++ b/install/helm/agones/templates/service/allocation.yaml @@ -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 }} @@ -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 }} diff --git a/install/helm/agones/values.yaml b/install/helm/agones/values.yaml index 2938c04f13..91c74bd22e 100644 --- a/install/helm/agones/values.yaml +++ b/install/helm/agones/values.yaml @@ -231,6 +231,7 @@ agones: service: name: agones-allocator serviceType: LoadBalancer + externalTrafficPolicy: Local clusterIP: "" loadBalancerIP: "" loadBalancerSourceRanges: [] diff --git a/install/yaml/install.yaml b/install/yaml/install.yaml index 0d9d8ffa4f..d6f632ec69 100644 --- a/install/yaml/install.yaml +++ b/install/yaml/install.yaml @@ -17822,6 +17822,7 @@ spec: targetPort: 8443 protocol: TCP type: LoadBalancer + externalTrafficPolicy: Local --- # Source: agones/templates/service/allocation.yaml apiVersion: v1