mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
k8s-ci-robot
parent
e8838ca15d
commit
79feb6ca8f
@@ -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
|
||||
|
||||
@@ -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 | {} |
|
||||
|
||||
@@ -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" . }}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user