Auto-generated Passwords (Internal PostgreSQL)

An internal PostgreSQL requires one password variable to be available or during installation upgrade.

An internal PostgreSQL requires one password variable to be available during installation or upgrade. If it is not set by the user, a random 10 character alphanumeric string will be set. Therefore, it is recommended to set this explicitly during installation and upgrade.

--set postgresql.postgresqlPassword=<value>

The values should remain same between upgrades. If this was auto-generated during helm install, the same password will have to be passed on future upgrades.

To read the current password, use the following command. For more information on reading a secret value, see Kubernetes: Decoding a Secret.

POSTGRES_PASSWORD=$(kubectl get secret -n <namespace><release_name>-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode)

The following parameter can be set during the upgrade:

--set postgresql.postgresqlPassword=${POSTGRES_PASSWORD}

Tip

For Helm Charts version 7.111.x and later, the correct parameter for setting the PostgreSQL password has changed to postgresql.auth.password.