Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow nodePort value for the postgres-operator-ui service #928

Merged
merged 7 commits into from Apr 29, 2020
3 changes: 3 additions & 0 deletions charts/postgres-operator-ui/templates/service.yaml
Expand Up @@ -11,6 +11,9 @@ spec:
ports:
- port: {{ .Values.service.port }}
targetPort: 8081
{{- if and (eq .Values.service.type "NodePort") .Values.service.nodePort }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
protocol: TCP
selector:
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down
3 changes: 3 additions & 0 deletions charts/postgres-operator-ui/values.yaml
Expand Up @@ -42,6 +42,9 @@ envs:
service:
type: "ClusterIP"
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"
ingress:
Expand Down