postgres-cnpg
by lbenicio
CloudNativePG single-instance cluster and stable service for the local storage node
About this chart
PostgreSQL CNPG Chart
Manages the existing one-instance CloudNativePG Cluster and the stable client-facing LoadBalancer Service. The values preserve the pinned PostgreSQL image, 10 GiB local-path data claim, storage-node placement, superuser Secret reference, ClusterIP, and MetalLB address.
The chart sets the PostgreSQL CPU request to 250m by default.
helm upgrade --install postgres-cnpg lbenicio-community/postgres-cnpg \
--version 0.1.0 \
--namespace default \
--values src/storage/postgres/values.yaml \
--take-ownership --rollback-on-failure --wait --timeout 10m
The first installation adopts the existing Cluster and Service without recreating the data claim. A change to the single PostgreSQL instance's pod resources can cause a brief database restart while CloudNativePG reconciles it.
Deploy postgres-cnpg with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has postgres-cnpg on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpostgres-cnpg is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply