Charmed PostgreSQL
- By Canonical Data Platform
- Databases
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 316 | 11 Aug 2023 | |
14/stable | 288 | 18 Apr 2023 | |
14/candidate | 326 | 19 Sep 2023 | |
14/beta | 330 | 27 Sep 2023 | |
14/edge | 330 | 26 Sep 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.
Platform:
Charmed PostgreSQL backup can be stored on any S3 compatible storage. The S3 access and configurations are managed with the s3-integrator charm. Deploy and configure the s3-integrator charm for AWS S3 (click here to backup on Ceph via RadosGW):
juju deploy s3-integrator
juju run-action s3-integrator/leader sync-s3-credentials access-key=<access-key-here> secret-key=<secret-key-here> --wait
juju config s3-integrator \
endpoint="https://s3.us-west-2.amazonaws.com" \
bucket="postgresql-test-bucket-1" \
path="/postgresql-test" \
region="us-west-2"
Amazon S3 endpoint must be specified as
s3.<region>.amazonaws.com
within the first 24 hours from when you create the bucket. For older buckets, the endpoints3.amazonaws.com
can be used.
To pass these configurations to Charmed PostgreSQL, relate the two applications:
juju relate s3-integrator postgresql
You can create/list/restore backups now:
juju run-action postgresql/leader list-backups --wait
juju run-action postgresql/leader create-backup --wait
juju run-action postgresql/leader list-backups --wait
juju run-action postgresql/leader restore backup-id=<backup-id-here> --wait
You can also update your S3 configuration options after relating, using:
juju config s3-integrator <option>=<value>
The s3-integrator charm accepts many configurations - enter whatever configurations are necessary for your S3 storage.
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.