Skip to content

Commit 089544b

Browse files
authored
chore: document postgres.noPasswordEnv (#1131)
* chore: document postgres.noPasswordEnv * fixup! chore: document postgres.noPasswordEnv
1 parent dc1ccff commit 089544b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

guides/deployments/postgres.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ or cluster.
4444
the console, to avoid inadvertently storing credentials in shell history
4545
files.
4646

47+
> Normally, we set the PostgreSQL password as an environment variable in the
48+
> `coderd` deployment with a reference to the Kubernetes secret. If this is
49+
> not desirable, you can instead mount the secret as a file which Coder will
50+
> read at startup. To do this, set the Helm value `postgres.noPasswordEnv` to
51+
> `true`. This will mount the secret under
52+
> `/run/secrets/<.Values.postgres.passwordSecret>/password` and set the
53+
> environment variable `DB_PASSWORD_PATH` for `coderd` to that value.
54+
4755
1. Get the port number for your PostgreSQL instance:
4856

4957
```sql

0 commit comments

Comments
 (0)