pgbouncer

by One Acre Fund

Helm chartv0.1.8App 1.19.1MITVerified publisher

A Helm chart for deploying bitnami/pgbouncer with TLS encryption

About this chart

PgBouncer

A Helm chart for deploying bitnami/pgbouncer with TLS encryption

Homepage: https://github.com/one-acre-fund/oaf-public-charts

Maintainers

NameEmailUrl
Rahma[email protected]https://github.com/samaroon

Source Code

TL;DR

pgbouncer is a lightweight connection pooler for PostgreSQL.

helm repo add one-acre-fund https://one-acre-fund.github.io/oaf-public-charts
helm install pgbouncer one-acre-fund/pgbouncer

Values

KeyTypeDefaultDescription
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
autoscaling.targetMemoryUtilizationPercentageint80
extraConfigslist[]
extraSecretConfigslist[]
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"bitnami/pgbouncer"
image.tagstring"1.19.1-debian-11-r44"
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring"nginx"
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
nameOverridestring""
pgbouncer.connectQuerystring""
pgbouncer.databasestring"${PGBOUNCER_DATABASE}"
pgbouncer.hoststring"postgresql"
pgbouncer.passwordstring"your-postgresql-password"
pgbouncer.portint5432
pgbouncer.postgresqlDatabasestring"${PGBOUNCER_DATABASE}"
pgbouncer.setDatabasePasswordstring"no"
pgbouncer.setDatabaseUserstring"no"
pgbouncer.usernamestring"postgres"
podAnnotationsobject{}
podSecurityContextobject{}
replicaCountint1
resources.limits.cpustring"100m"
resources.limits.memorystring"128Mi"
resources.requests.cpustring"100m"
resources.requests.memorystring"128Mi"
service.portint6432
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
tls.certFilenamestring"tls.crt"
tls.certKeyFilenamestring"tls.key"
tls.certificatesSecretstring"oaf-tls"
tls.enabledbooltrue

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpgbouncer is pinned at v0.1.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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