This is an automated email from the ASF dual-hosted git repository.

nic-6443 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git


The following commit(s) were added to refs/heads/master by this push:
     new cd0125c  Remove externalTrafficPolicy from template for service type 
ClusterIP (#950)
cd0125c is described below

commit cd0125c41a10943752f8d108d77bdbc4dbf322f0
Author: AndrĂ© Birke <[email protected]>
AuthorDate: Wed Sep 30 09:33:12 2026 +0200

    Remove externalTrafficPolicy from template for service type ClusterIP (#950)
---
 charts/apisix/templates/service-gateway.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/charts/apisix/templates/service-gateway.yaml 
b/charts/apisix/templates/service-gateway.yaml
index 71b6e6a..62682c5 100644
--- a/charts/apisix/templates/service-gateway.yaml
+++ b/charts/apisix/templates/service-gateway.yaml
@@ -28,7 +28,9 @@ metadata:
     app.kubernetes.io/service: apisix-gateway
 spec:
   type: {{ .Values.service.type }}
+  {{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type 
"NodePort") }}
   externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
+  {{- end }}
   {{- if eq .Values.service.type "LoadBalancer" }}
   {{- if .Values.service.loadBalancerIP }}
   loadBalancerIP: {{ .Values.service.loadBalancerIP }}

Reply via email to