pgbouncer
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
| Name | Url | |
|---|---|---|
| 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
| Key | Type | Default | Description |
|---|---|---|---|
| autoscaling.enabled | bool | false | |
| autoscaling.maxReplicas | int | 100 | |
| autoscaling.minReplicas | int | 1 | |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| autoscaling.targetMemoryUtilizationPercentage | int | 80 | |
| extraConfigs | list | [] | |
| extraSecretConfigs | list | [] | |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "bitnami/pgbouncer" | |
| image.tag | string | "1.19.1-debian-11-r44" | |
| imagePullSecrets | list | [] | |
| ingress.annotations | object | {} | |
| ingress.className | string | "nginx" | |
| ingress.enabled | bool | false | |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.tls | list | [] | |
| nameOverride | string | "" | |
| pgbouncer.connectQuery | string | "" | |
| pgbouncer.database | string | "${PGBOUNCER_DATABASE}" | |
| pgbouncer.host | string | "postgresql" | |
| pgbouncer.password | string | "your-postgresql-password" | |
| pgbouncer.port | int | 5432 | |
| pgbouncer.postgresqlDatabase | string | "${PGBOUNCER_DATABASE}" | |
| pgbouncer.setDatabasePassword | string | "no" | |
| pgbouncer.setDatabaseUser | string | "no" | |
| pgbouncer.username | string | "postgres" | |
| podAnnotations | object | {} | |
| podSecurityContext | object | {} | |
| replicaCount | int | 1 | |
| resources.limits.cpu | string | "100m" | |
| resources.limits.memory | string | "128Mi" | |
| resources.requests.cpu | string | "100m" | |
| resources.requests.memory | string | "128Mi" | |
| service.port | int | 6432 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| tls.certFilename | string | "tls.crt" | |
| tls.certKeyFilename | string | "tls.key" | |
| tls.certificatesSecret | string | "oaf-tls" | |
| tls.enabled | bool | true |
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 v0.1.8 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