pgbouncer
by Helm
Helm chartv1.19.0App 1.19.0
PgBouncer chart
About this chart
kubernetes-helm-chart-pgbouncer
This project is a Helm chart implementation for PgBouncer.
Configuration
Create a values.override.yaml (or similar) to add your databases and users settings.
# values.override.yaml example
replicaCount: 1
verbose: 1
users:
dbuser: notagoodpassword
databases:
postgres:
host: postgresql-internal
port: 5432
user: dbuser
dbname: postgres
connectionLimits:
defaultPoolSize: 20
minPoolSize: 20
reservePoolSize: 20
Installation
helm install -f values.override.yaml pgbouncer
or in your chart's requirements.yaml
dependencies:
- name: pgbouncer
version: 1.0.15
repository: https://raw.githubusercontent.com/cradlepoint/kubernetes-helm-chart-pgbouncer/master/repos/stable
Deploy pgbouncer with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pgbouncer 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 chartpgbouncer is pinned at v1.19.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