only set nodeports when servicetype == nodeport
This commit is contained in:
@@ -10,7 +10,9 @@ spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8888
|
||||
{{ if eq .Values.serviceType "NodePort" }}
|
||||
nodePort: {{ .Values.routerPort }}
|
||||
{{ end }}
|
||||
selector:
|
||||
svc: router
|
||||
|
||||
@@ -27,7 +29,9 @@ spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8888
|
||||
{{ if eq .Values.serviceType "NodePort" }}
|
||||
nodePort: {{ .Values.controllerPort }}
|
||||
{{ end }}
|
||||
selector:
|
||||
svc: controller
|
||||
|
||||
@@ -44,7 +48,9 @@ spec:
|
||||
ports:
|
||||
- port: 4222
|
||||
targetPort: 4222
|
||||
{{ if eq .Values.serviceType "NodePort" }}
|
||||
nodePort: {{ .Values.natsStreamingPort }}
|
||||
{{ end }}
|
||||
selector:
|
||||
svc: nats-streaming
|
||||
|
||||
|
||||
@@ -10,7 +10,9 @@ spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8888
|
||||
{{ if eq .Values.serviceType "NodePort" }}
|
||||
nodePort: {{ .Values.routerPort }}
|
||||
{{ end }}
|
||||
selector:
|
||||
svc: router
|
||||
|
||||
@@ -27,7 +29,9 @@ spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8888
|
||||
{{ if eq .Values.serviceType "NodePort" }}
|
||||
nodePort: {{ .Values.controllerPort }}
|
||||
{{ end }}
|
||||
selector:
|
||||
svc: controller
|
||||
|
||||
|
||||
Reference in New Issue
Block a user