Charmed PostgreSQL K8s

Channel Revision Published Runs on
latest/stable 20 20 Sep 2022
Ubuntu 20.04
14/stable 382 11 Sep 2024
Ubuntu 22.04
14/stable 381 11 Sep 2024
Ubuntu 22.04
14/candidate 382 09 Sep 2024
Ubuntu 22.04
14/candidate 381 09 Sep 2024
Ubuntu 22.04
14/beta 382 09 Sep 2024
Ubuntu 22.04
14/beta 381 09 Sep 2024
Ubuntu 22.04
14/edge 420 Yesterday
Ubuntu 22.04
14/edge 419 Yesterday
Ubuntu 22.04
juju deploy postgresql-k8s --channel 14/stable
Show information

Platform:

How to deploy on MicroK8s

This guide assumes you have a running Juju and MicroK8s environment.

For a detailed walkthrough of setting up an environment and deploying the charm on MicroK8s, refer to the following Tutorial pages:

MicroK8s can be installed on a multitude of platforms and environments for different use cases. See all options and details in the official documentation.

Not all platforms supported by MicroK8s will work with this charm - keep in mind the system requirements of Charmed PostgreSQL.

Prerequisites


Bootstrap a juju controller and create a model if you haven’t already:

juju bootstrap localhost <controller name>
juju add-model <model name>

Deploy PostgreSQL K8s:

juju deploy postgresql-k8s --trust

The --trust flag is necessary to create some K8s resources

See the juju deploy documentation for all available options at deploy time.

See the Configurations tab for specific PostgreSQL K8s parameters.

Example juju status --wait 1s output:

Model       Controller  Cloud/Region        Version  SLA          Timestamp
example  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

Help improve this document in the forum (guidelines). Last updated 13 hours ago.