PostgreSQL Configuration
Production vs Demo Deployments
⚠️ Important: This document describes PostgreSQL setup for demo/development environments only.
For production deployments, use the CloudNativePG Operator instead of the Bitnami Helm chart. The operator provides:
-
Kubernetes-native PostgreSQL cluster management
-
Automated failover and high availability
-
Built-in backup and Point-in-Time Recovery (PITR)
-
Zero-downtime maintenance operations
-
Enhanced monitoring and observability
-
Production-grade security features
Demo/Development Installation
For development and demo environments, bitnami/postgresql chart can be used for quick setup.
Demo Standalone Installation
Add bitnami repo to helm:
1 | |
Install PostgreSQL release for demo/development:
1 | |
Note:
-
The default configuration in
postgresql-values.yamlusesbitnamilegacyDocker images for compatibility -
This setup is not recommended for production use
NB: the values postgresql.enabled and postgresqlha.enabled must be false.
Chart configuration
You can change default PostgreSQL config with the following variables in postgresql-values.yaml:
-
auth.database- name of a database.NB: must match
postgresql.databasevalue inwaldur/values.yaml -
auth.username- name of a database user.NB: must match
postgresql.usernamevalue inwaldur/values.yaml -
auth.password- password of a database user -
primary.persistence.size- size of a database -
image.tag- tag ofPostgreSQLimage.Possible tags for default image can be found here
-
image.registry- registry ofPostgreSQLimage.
More information related to possible values here.
Important:
-
The PostgreSQL configuration uses legacy Bitnami images (
bitnamilegacy/postgresqlandbitnamilegacy/postgres-exporter) for demo/development compatibility -
These images are configured in the
postgresql-values.yamlfile -
For production deployments, migrate to the CloudNativePG Operator
Demo Dependency Installation
Waldur Helm chart supports PostgreSQL installation as a dependency.
For this, set postgresql.enabled to true and update related settings in postgresql section in waldur/values.yaml
NB: the value postgresqlha.enabled and externalDB.enabled must be false.
Prior Waldur installation, update chart dependencies:
1 | |
Readonly user configuration
In order to enable /api/query/ endpoint please make sure that read-only user is configured.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |