Charmed PostgreSQL K8s

  • By Canonical Data Platform
Channel Revision Published Runs on
latest/stable 20 20 Sep 2022
Ubuntu 20.04
14/stable 73 18 Apr 2023
Ubuntu 22.04
14/candidate 73 18 Apr 2023
14/beta 73 18 Apr 2023
14/edge 92 Yesterday
juju deploy postgresql-k8s --channel 14/stable
Show information

Platform:

How to manage related applications

New postgresql_client interface:

Relations to new applications are supported via the “postgresql_client” interface. To create a relation:

juju relate postgresql-k8s application

To remove a relation:

juju remove-relation postgresql-k8s application

Legacy pgsql interface:

We have also added support for the database legacy relation from the original version of the charm via the pgsql interface. Please note that these interface is deprecated.

juju relate postgresql-k8s:db mattermost-k8s:db

Also extended permissions can be requested using db-admin edpoint:

juju relate postgresql-k8s:db-admin mattermost-k8s:db

Rotate applications password

To rotate the passwords of users created for related applications, the relation should be removed and related again. That process will generate a new user and password for the application.

juju remove-relation application postgresql-k8s
juju add-relation application postgresql-k8s

Internal operator user

The operator user is used internally by the Charmed PostgreSQL Operator, the set-password action can be used to rotate its password.

  • To set a specific password for the operator user
juju run-action postgresql-k8s/leader set-password password=<password> --wait
  • To randomly generate a password for the operator user
juju run-action postgresql-k8s/leader set-password --wait

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.

Last updated a month ago. Help improve this document in the forum.