PgBouncer K8s
- Canonical
- Databases
Channel | Revision | Published | Runs on |
---|---|---|---|
1/stable | 269 | 11 Sep 2024 | |
1/stable | 268 | 11 Sep 2024 | |
1/candidate | 360 | Today | |
1/candidate | 359 | Today | |
1/beta | 360 | 16 Dec 2024 | |
1/beta | 359 | 16 Dec 2024 | |
1/edge | 360 | 04 Dec 2024 | |
1/edge | 359 | 04 Dec 2024 |
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:
Environment Setup
This is part of the PgBouncer K8s Tutorial. Please refer to this page for more information and the overview of the content.
Minimum requirements
Before we start, make sure your machine meets the following requirements.
Multipass environment
Multipass is a quick and easy way to launch virtual machines running Ubuntu. It uses the cloud-init standard to install and configure all the necessary parts automatically.
Install Multipass from Snap:
sudo snap install multipass
Launch a new VM using the charm-dev cloud-init config:
multipass launch --cpus 4 --memory 8G --disk 30G --name my-vm charm-dev
Note: All ‘multipass launch’ params are described here.
The Multipass list of commands is short and self-explanatory. For example, to show all running VMs, just run the command multipass list
.
As soon as a new VM has started, access it using
multipass shell my-vm
Note: If at any point you’d like to leave a Multipass VM, enter Ctrl+D
or type exit
.
All the parts have been pre-installed inside the VM already, like MicroK8s and Juju. The files /var/log/cloud-init.log
and /var/log/cloud-init-output.log
contain all low-level installation details.
The Juju controller can work with different models. Models host applications such as Charmed PostgreSQL K8s + PgBouncer K8s.
Set up a specific model named ‘tutorial’:
juju add-model tutorial
You can now view the model you created above by entering the command juju status
into the command line.
You should see the following:
Model Controller Cloud/Region Version SLA Timestamp
tutorial microk8s microk8s/localhost 3.1.6 unsupported 11:56:38+01:00
Model "admin/tutorial" is empty.