chore(helm): use externalTrafficPolicy only for lb/nodeport type svc.
Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
parent
598243721c
commit
2291559973
1 changed files with 2 additions and 0 deletions
|
|
@ -6,8 +6,10 @@ metadata:
|
||||||
{{- include "nginx-ingress.labels" . | nindent 4 }}
|
{{- include "nginx-ingress.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
type: {{ .Values.service.type }}
|
type: {{ .Values.service.type }}
|
||||||
|
{{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")}}
|
||||||
# Make sure to get client ip
|
# Make sure to get client ip
|
||||||
externalTrafficPolicy: Local
|
externalTrafficPolicy: Local
|
||||||
|
{{- end}}
|
||||||
ports:
|
ports:
|
||||||
{{- range .Values.service.ports }}
|
{{- range .Values.service.ports }}
|
||||||
- port: {{ .port }}
|
- port: {{ .port }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue