mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
postgresql: added postgresConfig value to specify runtime config parameters (#3780)
This commit is contained in:
committed by
k8s-ci-robot
parent
3aaf81b558
commit
ac3aa9fe6f
@@ -1,5 +1,5 @@
|
||||
name: postgresql
|
||||
version: 0.8.14
|
||||
version: 0.9.0
|
||||
description: Object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
|
||||
keywords:
|
||||
- postgresql
|
||||
|
||||
@@ -53,6 +53,7 @@ The following tables lists the configurable parameters of the PostgreSQL chart a
|
||||
| `postgresPassword` | Password for the new user. | random 10 characters |
|
||||
| `postgresDatabase` | Name for new database to create. | `postgres` |
|
||||
| `postgresInitdbArgs` | Initdb Arguments | `nil` |
|
||||
| `postgresConfig` | Runtime Config Parameters | `nil` |
|
||||
| `persistence.enabled` | Use a PVC to persist data | `true` |
|
||||
| `persistence.existingClaim`| Provide an existing PersistentVolumeClaim | `nil` |
|
||||
| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) |
|
||||
|
||||
@@ -29,6 +29,11 @@ spec:
|
||||
- name: {{ template "postgresql.fullname" . }}
|
||||
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
|
||||
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
|
||||
args:
|
||||
{{- range $key, $value := default dict .Values.postgresConfig }}
|
||||
- -c
|
||||
- '{{ $key | snakecase }}={{ $value }}'
|
||||
{{- end }}
|
||||
env:
|
||||
- name: POSTGRES_USER
|
||||
value: {{ default "postgres" .Values.postgresUser | quote }}
|
||||
|
||||
@@ -31,6 +31,11 @@ imageTag: "9.6.2"
|
||||
## ref: https://www.postgresql.org/docs/current/static/app-initdb.html
|
||||
# postgresInitdbArgs:
|
||||
|
||||
## Specify runtime config parameters as a dict, using camelCase, e.g.
|
||||
## {"sharedBuffers": "500MB"}
|
||||
## ref: https://www.postgresql.org/docs/current/static/runtime-config.html
|
||||
# postgresConfig:
|
||||
|
||||
## Persist data to a persitent volume
|
||||
persistence:
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user