Postgres Variables
Internal Setup
It is good practice to change thepostgres.auth.postgresqlPassword in the values.yaml file. To do this, you can change the value or comment on the line postgresqlPassword: postgres before installing the Helm chart, which will autogenerate a password. An existing secret can also be used, and it needs to contain the keys postgresql-password and password.
External Setup
-
Go to the
values.yamlfile and scroll down topostgresqlfield. Change theenabledvalue tofalse. -
Type the user credentials and uncomment the properties
postgresqlHost,postgresqlPort, giving them the correct values. -
Define a password to access the external Postgres instance:
- A. A secret is created by default. Edit the password inside the Postgres secret. The secret name is composed of the
release name+postgres. - B. (Recommended) Define an existing secret. Create the secret and set the values inside the
values.yamlfile. The keys arepostgresql.existingSecretandpostgresql.auth.secretKeys.adminPasswordKey.
- A. A secret is created by default. Edit the password inside the Postgres secret. The secret name is composed of the