E587 add possibility to choose nodePort port for LoadBalancer · nginx/kubernetes-ingress@068831e · GitHub
[go: up one dir, main page]

Skip to content

Commit 068831e

Browse files
VincentFalltrades
authored andcommitted
add possibility to choose nodePort port for LoadBalancer
1 parent e4815d5 commit 068831e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/nginx-ingress/templates/controller-service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ spec:
5050
targetPort: {{ .Values.controller.service.httpPort.targetPort }}
5151
protocol: TCP
5252
name: http
53-
{{- if eq .Values.controller.service.type "NodePort" }}
53+
{{- if or (eq .Values.controller.service.type "LoadBalancer") (eq .Values.controller.service.type "NodePort") }}
5454
nodePort: {{ .Values.controller.service.httpPort.nodePort }}
5555
{{- end }}
5656
{{- end }}
@@ -59,7 +59,7 @@ spec:
5959
targetPort: {{ .Values.controller.service.httpsPort.targetPort }}
6060
protocol: TCP
6161
name: https
62-
{{- if eq .Values.controller.service.type "NodePort" }}
62+
{{- if or (eq .Values.controller.service.type "LoadBalancer") (eq .Values.controller.service.type "NodePort") }}
6363
nodePort: {{ .Values.controller.service.httpsPort.nodePort }}
6464
{{- end }}
6565
{{- end }}

0 commit comments

Comments
 (0)
0