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:
Marcus Portmann 2020-04-29 07:28:35 +02:00 committed by GitHub
parent 1d009d9595
commit 0016ebf7df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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 }}

View File

@ -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: