Charmed PostgreSQL K8s
- By Canonical Data Platform
- Databases
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 20 | 20 Sep 2022 | |
14/stable | 193 | 13 Mar 2024 | |
14/candidate | 193 | 31 Jan 2024 | |
14/beta | 211 | 13 Mar 2024 | |
14/edge | 237 | 16 Apr 2024 |
juju deploy postgresql-k8s --channel 14/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 on MicroK8s
For a detailed walkthrough of deploying the charm on MicroK8s, refer to the Tutorial.
For a short summary of the commands on Ubuntu 22.04 LTS, see below:
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
multipass shell my-vm
juju add-model postgresql
juju deploy postgresql-k8s --channel 14/stable --trust
juju status --watch 1s
The expected result:
Model Controller Cloud/Region Version SLA Timestamp
postgresql charm-dev microk8s/localhost 2.9.42 unsupported 12:00:43+01:00
App Version Status Scale Charm Channel Rev Address Exposed Message
postgresql-k8s active 1 postgresql-k8s 14/stable 56 10.152.183.167 no
Unit Workload Agent Address Ports Message
postgresql-k8s/0* active idle 10.1.188.206
Check the Testing reference to test your deployment.