Allow nodePort value for the postgres-operator-ui service (#928)
* Added support for specifying a nodePort value for the postgres-operator-ui service when the type is NodePort Co-authored-by: Marcus Portmann <marcusp@discovery.co.za>
This commit is contained in:
parent
1d009d9595
commit
0016ebf7df
|
|
@ -11,6 +11,9 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .Values.service.port }}
|
- port: {{ .Values.service.port }}
|
||||||
targetPort: 8081
|
targetPort: 8081
|
||||||
|
{{- if and (eq .Values.service.type "NodePort") .Values.service.nodePort }}
|
||||||
|
nodePort: {{ .Values.service.nodePort }}
|
||||||
|
{{- end }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,9 @@ envs:
|
||||||
service:
|
service:
|
||||||
type: "ClusterIP"
|
type: "ClusterIP"
|
||||||
port: "8080"
|
port: "8080"
|
||||||
|
# If the type of the service is NodePort a port can be specified using the nodePort field
|
||||||
|
# If the nodePort field is not specified, or if it has no value, then a random port is used
|
||||||
|
# notePort: 32521
|
||||||
|
|
||||||
# configure UI ingress. If needed: "enabled: true"
|
# configure UI ingress. If needed: "enabled: true"
|
||||||
ingress:
|
ingress:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue