diff --git a/values/ingress-nginx/values/ingress-nginx.yaml.gotmpl b/values/ingress-nginx/values/ingress-nginx.yaml.gotmpl index d4fd912e..fc226858 100644 --- a/values/ingress-nginx/values/ingress-nginx.yaml.gotmpl +++ b/values/ingress-nginx/values/ingress-nginx.yaml.gotmpl @@ -59,15 +59,17 @@ controller: minAvailable: {{ .Values.nginx.pdb.minAvailable }} - {{- if .Values.clusterConfig.ingress_nodeport }} service: externalTrafficPolicy: Local + {{- if .Values.clusterConfig.ingress_nodeport }} type: NodePort nodePorts: http: 30080 https: 30443 tcp: {} udp: {} + {{- else }} + type: ClusterIP {{- end }} hostNetwork: {{ .Values.clusterConfig.ingress_hostnetwork }}