PgBouncer K8s

Channel Revision Published Runs on
1/stable 269 11 Sep 2024
Ubuntu 22.04
1/stable 268 11 Sep 2024
Ubuntu 22.04
1/candidate 269 09 Sep 2024
Ubuntu 22.04
1/candidate 268 09 Sep 2024
Ubuntu 22.04
1/beta 269 09 Sep 2024
Ubuntu 22.04
1/beta 268 09 Sep 2024
Ubuntu 22.04
1/edge 348 Yesterday
Ubuntu 22.04
1/edge 347 Yesterday
Ubuntu 22.04
juju deploy pgbouncer-k8s --channel 1/candidate
Show information

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.

Help improve this document in the forum (guidelines). Last updated 11 months ago.