Skip to content

Commit 0016ebf

Browse files
Marcus PortmannMarcus Portmann
Marcus Portmann
and
Marcus Portmann
authored
Allow nodePort value for the postgres-operator-ui service (zalando#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>
1 parent 1d009d9 commit 0016ebf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

charts/postgres-operator-ui/templates/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ spec:
1111
ports:
1212
- port: {{ .Values.service.port }}
1313
targetPort: 8081
14+
{{- if and (eq .Values.service.type "NodePort") .Values.service.nodePort }}
15+
nodePort: {{ .Values.service.nodePort }}
16+
{{- end }}
1417
protocol: TCP
1518
selector:
1619
app.kubernetes.io/instance: {{ .Release.Name }}

charts/postgres-operator-ui/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ envs:
4242
service:
4343
type: "ClusterIP"
4444
port: "8080"
45+
# If the type of the service is NodePort a port can be specified using the nodePort field
46+
# If the nodePort field is not specified, or if it has no value, then a random port is used
47+
# notePort: 32521
4548

4649
# configure UI ingress. If needed: "enabled: true"
4750
ingress:

0 commit comments

Comments
 (0)