diff --git a/stable/postgresql/README.md b/stable/postgresql/README.md index 6734128ea7..16cfe19b8d 100644 --- a/stable/postgresql/README.md +++ b/stable/postgresql/README.md @@ -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) | diff --git a/stable/postgresql/templates/deployment.yaml b/stable/postgresql/templates/deployment.yaml index 6e275df695..0765809e02 100644 --- a/stable/postgresql/templates/deployment.yaml +++ b/stable/postgresql/templates/deployment.yaml @@ -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 diff --git a/stable/postgresql/values.yaml b/stable/postgresql/values.yaml index 0f9e8a75e4..800908f61e 100644 --- a/stable/postgresql/values.yaml +++ b/stable/postgresql/values.yaml @@ -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