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:
Barrett Harber
2017-05-22 20:19:47 +02:00
committed by Reinhard Nägele
parent e9085c7cfa
commit 113b449efb
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -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
+5
View File
@@ -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