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