Skip to content

PostgreSQL HA chart configuration

bitnami/postgresql-ha is used as a highly available database for Waldur.

Standalone installation

Add bitnami repo to helm:

1
  helm repo add bitnami https://charts.bitnami.com/bitnami

Install postgresql-ha release:

1
2
  helm install postgresql-ha bitnami/postgresql-ha \
    -f postgresql-ha-values.yaml --version 11.7.4

NB: the value postgresql.HAEnabled for waldur release must be true.

Chart configuration

You can change default PostgreSQL config with the following variables in values.yaml (postgresql-ha-values.yaml file):

  1. postgresql.database - name of a database. NB: must match postgresql.database value in waldur/values.yaml
  2. postgresql.username - name of a database user. NB: must match postgresql.username value in waldur/values.yaml
  3. postgresql.password - password of a database user
  4. postgresql.replicaCount - number of db replicas
  5. postgresql.syncReplication - enable/disable synchronous replication
  6. postgresql.repmgrUsername - username of repmgr user
  7. postgresql.repmgrPassword - password of repmgr user
  8. persistence.size - size of a database (for each replica)
  9. pgpoolImage.tag - tag of Pgpool image. Possible tags for default image can be found here
  10. postgresqlImage.tag - tag of PostgreSQL image. Possible tags for default image can be found here
  11. pgpoolImage.tag - registry of Pgpool image.
  12. postgresqlImage.tag - registry of PostgreSQL image.

More information related to possible values here.

Dependency installation

Waldur Helm chart supports PostgreSQL HA installation as a dependency. For this, set postgresqlha.enabled to true and update related settings in postgresqlha section in waldur/values.yaml

NB: the value postgresql.enabled and externalDB.enabled must be false.

Prior Waldur installation, update chart dependencies:

1
helm dependency update