How to deploy on Canonical K8s¶
Canonical Kubernetes is a Kubernetes service built on Ubuntu and optimised for most major public clouds.
Prerequisites¶
A physical or virtual machine running Ubuntu 24.04+
Juju 3.6+ installed via snap
Install Canonical Kubernetes¶
Follow the instructions in the official Canonical Kubernetes documentation
Once Canonical K8s is up and running, enable local storage (or any another persistent volume provider, to be used by Juju storage later):
user@host:~$ user@host:~$ See also: Canonical Kubernetes | Enable local storage
Optionally, install the kubectl tool and dump the K8s config.
user@host:~$ user@host:~$ user@host:~$ user@host:~$ Bootstrap Juju on Canonical K8s¶
Add a Juju K8s cloud:
user@host:~$ Bootstrap a Juju controller:
user@host:~$ Deploy Charmed PostgreSQL¶
Create a Juju model:
user@host:~$ Deploy the PostgreSQL charm for K8s:
user@host:~$ For more information, see the official Canonical Kubernetes documentation