bitnami/postgresql-ha is used as a highly available database for Waldur.
Add bitnami
repo to helm:
helm repo add bitnami https://charts.bitnami.com/bitnami
Install postgresql-ha
release:
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
.
You can change default PostgreSQL config with
the following variables in values.yaml
(postgresql-ha-values.yaml
file):
postgresql.database
- name of a database. NB: must matchpostgresql.database
value inwaldur/values.yaml
postgresql.username
- name of a database user. NB: must matchpostgresql.username
value inwaldur/values.yaml
postgresql.password
- password of a database userpostgresql.replicaCount
- number of db replicaspostgresql.syncReplication
- enable/disable synchronous replicationpostgresql.repmgrUsername
- username ofrepmgr
userpostgresql.repmgrPassword
- password ofrepmgr
userpersistence.size
- size of a database (for each replica)pgpoolImage.tag
- tag ofPgpool
image. Possible tags for default image can be found herepostgresqlImage.tag
- tag ofPostgreSQL
image. Possible tags for default image can be found herepgpoolImage.tag
- registry ofPgpool
image.postgresqlImage.tag
- registry ofPostgreSQL
image.
More information related to possible values here.
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:
helm dependency update