chore(helm): use externalTrafficPolicy only for lb/nodeport type svc.

Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
Rajesh Rajendran 2022-01-25 20:11:38 +05:30
parent 8d15d0a3bb
commit 8528ebdc7d

View file

@ -6,8 +6,10 @@ metadata:
{{- include "nginx-ingress.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
{{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")}}
# Make sure to get client ip
externalTrafficPolicy: Local
{{- end}}
ports:
{{- range .Values.service.ports }}
- port: {{ .port }}