Commit 78fb9a5d authored by Jason Plum's avatar Jason Plum

Merge branch 'align-external-pg-secret-names' into 'master'

Update external PG example to align with the pre-created secret values

Closes #516

See merge request charts/gitlab!317

[ci skip]
parents 895d4020 28f1c50f
Pipeline #25214250 skipped
......@@ -20,7 +20,7 @@ To use an external database with the `gitlab` chart, there are a few prerequisit
You need to set the following parameters:
* `postgresql.install`: Set to `false` to disable the embedded database.
* `global.psql.host`: Set to the hostname of the external database, can be a domain or an IP address.
* `global.psql.password.secret`: The name of the secret which contains the database password for the `gitlab` user.
* `global.psql.password.secret`: The name of the [secret which contains the database password for the `gitlab` user.](doc/installation/secrets.md#postgres-password)
* `global.psql.password.key`: The key within the secret, which contains the password. The password should be *unencoded* value.
Items below can be further customized if you are not using the defaults:
......@@ -34,6 +34,6 @@ For example, pass these values via helm's `--set` flag while deploying:
helm install
--set postgresql.install=false
--set global.psql.host=psql.example
--set global.psql.password.secret=postgresql-password
--set global.psql.password.key=psqlpassword
--set global.psql.password.secret=gitlab-postgresql-password
--set global.psql.password.key=postgres-password
```
......@@ -129,7 +129,7 @@ Include this secret using `--set global.minio.credentials.secret=minio-secret`
Generate a set of random 20 & 64 character alpha-numeric keys for database password.
```
kubectl create secret generic postgresql-password --from-literal=psqlpassword=$(head -c 512 /dev/urandom | LC_CTYPE=C tr -cd 'a-zA-Z0-9' | head -c 64)
kubectl create secret generic gitlab-postgresql-password --from-literal=postgres-password=$(head -c 512 /dev/urandom | LC_CTYPE=C tr -cd 'a-zA-Z0-9' | head -c 64)
```
## External services
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment