- By Canonical Data Platform
|latest/stable||290||19 Apr 2023|
|14/stable||288||18 Apr 2023|
|14/candidate||288||18 Apr 2023|
|14/beta||288||18 Apr 2023|
|14/edge||297||19 May 2023|
juju deploy postgresql --channel 14/stable
You will need Juju 2.9 to be able to run this command. Learn how to upgrade to Juju 2.9.
Deploy universal operators easily with Juju, the Universal Operator Lifecycle Manager.
This is part of the Charmed PostgreSQL Tutorial. Please refer to this page for more information and the overview of the content.
Before we start, make sure your machine meets the following requirements:
- Ubuntu 20.04 (Focal) or later.
- 8GB of RAM.
- 2 CPU threads.
- At least 20GB of available storage.
- Access to the internet for downloading the required snaps and charms.
Multipass is a quick and easy way to launch virtual machines running Ubuntu. It uses “cloud-init” standard to install and configure all the necessary parts automatically.
Let’s install Multipass from Snap and launch a new VM using “charm-dev” cloud-init config:
sudo snap install multipass && \ multipass launch --cpus 4 --memory 8G --disk 30G --name my-vm charm-dev # tune CPU/RAM/HDD accordingly to your needs
Note: all ‘multipass launch’ params are described here.
Multipass list of commands is short and self-explanatory, e.g. show all running VMs:
As soon as new VM started, enter inside using:
multipass shell my-vm
Note: if at any point you’d like to leave Multipass VM, enter
Ctrl+d or type
All the parts have been pre-installed inside VM already, like LXD and Juju (the files ‘/var/log/cloud-init.log’ and ‘/var/log/cloud-init-output.log’ contain all low-level installation details). Let’s bootstrap Juju to use local LXD:
juju bootstrap localhost overlord
The controller can work with different models; models host applications such as Charmed PostgreSQL. Set up a specific model for Charmed PostgreSQL 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 overlord localhost/localhost 2.9.42 unsupported 09:38:32+01:00 Model "admin/tutorial" is empty.
Help us improve this documentation
Most of this documentation can be collaboratively discussed and changed on the respective topic in the doc category of the Charmhub forum. See the documentation guidelines if you’d like to contribute.