
PgBouncer K8s
- Canonical
- Databases
Channel | Revision | Published | Runs on |
---|---|---|---|
1/stable | 360 | 20 Dec 2024 | |
1/stable | 359 | 20 Dec 2024 | |
1/candidate | 408 | 14 Feb 2025 | |
1/candidate | 407 | 14 Feb 2025 | |
1/beta | 408 | 07 Feb 2025 | |
1/beta | 407 | 07 Feb 2025 | |
1/edge | 416 | Yesterday | |
1/edge | 415 | Yesterday |
juju deploy pgbouncer-k8s --channel 1/stable
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
How to deploy and manage units
Basic Usage
To deploy a single unit of PgBouncer using its default configuration
juju deploy pgbouncer-k8s --trust --channel 1/stable
It is customary to use PgBouncer in HA setup. Hence usually more than one unit (preferably an odd number to prohibit a “split-brain” scenario) is deployed. To deploy PgBOuncer in HA mode, specify the number of desired units with the -n
option.
juju deploy pgbouncer-k8s --trust --channel 1/stable -n <number_of_replicas>
Scaling
Both scaling-up and scaling-down operations are performed using juju scale-application
:
juju scale-application pgbouncer-k8s <desired_num_of_units>
Tip: scaling-down to zero units is supported to safe K8s resources!