pgbouncer

by ulevitsky

Helm chartv0.6.0App 1.23.1MIT

A Helm chart for PgBouncer - a lightweight connection pooler for PostgreSQL

About this chart

PgBouncer Helm Chart

I've tried more than a few charts, but none seemed to work for me. So I've created this one.

This is a standalone PgBouncer chart extracted from the one embedded in Airflow chart.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.0+

Installation

To install the chart with the release name my-pgbouncer:

helm upgrade -i my-pgbouncer oci://registry-1.docker.io/ulevitsky/pgbouncer

This command deploys a PgBouncer instance with default configuration.

Requirements

Kubernetes: >= 1.20.0-0

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.6.0 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