mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Add POSTGRES_INITDB_ARGS (#1127)
- Add POSTGRES_INITDB_ARGS environment variable to deployment - Update README and values to reflect this addition
This commit is contained in:
committed by
Reinhard Nägele
parent
e9085c7cfa
commit
113b449efb
@@ -51,6 +51,7 @@ The following tables lists the configurable parameters of the PostgresSQL chart
|
||||
| `postgresUser` | Username of new user to create. | `postgres` |
|
||||
| `postgresPassword` | Password for the new user. | random 10 characters |
|
||||
| `postgresDatabase` | Name for new database to create. | `postgres` |
|
||||
| `postgresInitdbArgs` | Initdb Arguments | `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) |
|
||||
|
||||
@@ -25,6 +25,8 @@ spec:
|
||||
value: {{ default "postgres" .Values.postgresUser | quote }}
|
||||
- name: POSTGRES_DB
|
||||
value: {{ default "" .Values.postgresDatabase | quote }}
|
||||
- name: POSTGRES_INITDB_ARGS
|
||||
value: {{ default "" .Values.postgresInitdbArgs | quote }}
|
||||
- name: PGDATA
|
||||
value: /var/lib/postgresql/data/pgdata
|
||||
- name: POSTGRES_PASSWORD
|
||||
|
||||
@@ -21,6 +21,11 @@ imageTag: "9.6.2"
|
||||
## Default: the postgres user
|
||||
# postgresDatabase:
|
||||
|
||||
## Specify initdb arguments, e.g. --data-checksums
|
||||
## ref: https://github.com/docker-library/docs/blob/master/postgres/content.md#postgres_initdb_args
|
||||
## ref: https://www.postgresql.org/docs/current/static/app-initdb.html
|
||||
# postgresInitdbArgs:
|
||||
|
||||
## Persist data to a persitent volume
|
||||
persistence:
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user