From 5e0236ca2dd55f794fa156888a2f1aabfd9a3f03 Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Fri, 5 Feb 2021 22:47:05 -0500 Subject: [PATCH] docs: clarify helm postgres deploy ***NO_CI*** --- dev/helm/README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/dev/helm/README.md b/dev/helm/README.md index 63c829c3..21cc9c44 100644 --- a/dev/helm/README.md +++ b/dev/helm/README.md @@ -131,7 +131,22 @@ $ helm install --name my-release -f values.yaml . ## PostgresSQL -By default, PostgreSQL is installed as part of the chart. To use an external PostgreSQL server set `postgresql.enabled` to `false` and then set `postgresql.postgresqlHost` and `postgresql.postgresqlPassword`. The other options (`postgresql.postgresqlDatabase`, `postgresql.postgresqlUser` and `postgresql.postgresqlPort`) may also want changing from their default values. +By default, PostgreSQL is installed as part of the chart. + +### Using an external PostgreSQL server + +To use an external PostgreSQL server, set `postgresql.enabled` to `false` and then set `postgresql.postgresqlHost` and `postgresql.postgresqlPassword`. The other options (`postgresql.postgresqlDatabase`, `postgresql.postgresqlUser` and `postgresql.postgresqlPort`) may also want changing from their default values. + +You also need to add the follow Helm template to your deployment: + +```yaml +kind: Secret +apiVersion: v1 +metadata: + name: {{ template "wiki.postgresql.secret" . }} +data: + {{ template "wiki.postgresql.secretKey" . }}: "{{ .Values.postgresql.postgresqlPassword | b64enc }}" +``` ## Persistence