[stable/postgresql] Added ability to set the NodePort for the postgresql chart. (#3349)

* Added ability to set the NodePort for the postgresql chart.

* Update Chart.yaml
This commit is contained in:
Charles Vallance
2018-01-29 12:23:34 -08:00
committed by k8s-ci-robot
parent e8838ca15d
commit 79feb6ca8f
4 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: postgresql
version: 0.8.8
version: 0.8.9
description: Object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
keywords:
- postgresql
+1
View File
@@ -71,6 +71,7 @@ The following tables lists the configurable parameters of the PostgresSQL chart
| `service.externalIPs` | External IPs to listen on | `[]` |
| `service.port` | TCP port | `5432` |
| `service.type` | k8s service type exposing ports, e.g. `NodePort`| `ClusterIP` |
| `service.nodePort` | NodePort value if service.type is `NodePort` | `nil` |
| `networkPolicy.enabled` | Enable NetworkPolicy | `false` |
| `networkPolicy.allowExternal` | Don't require client label for connections | `true` |
| `nodeSelector` | Node labels for pod assignment | {} |
+4 -1
View File
@@ -18,9 +18,12 @@ spec:
- name: postgresql
port: {{ .Values.service.port }}
targetPort: postgresql
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
{{- if .Values.service.externalIPs }}
externalIPs:
{{ toYaml .Values.service.externalIPs | indent 4 }}
{{- end }}
selector:
app: {{ template "postgresql.fullname" . }}
app: {{ template "postgresql.fullname" . }}
+3
View File
@@ -89,6 +89,9 @@ service:
type: ClusterIP
port: 5432
externalIPs: []
## Manually set NodePort value
## Requires service.type: NodePort
# nodePort:
networkPolicy:
## Enable creation of NetworkPolicy resources.