chore(helm): use externalTrafficPolicy only for lb/nodeport type svc.
Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
parent
8d15d0a3bb
commit
8528ebdc7d
1 changed files with 2 additions and 0 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue