How to deploy¶
The basic requirements for deploying a charm are the Juju client and a machine cloud.
For more details, see System requirements.
If you are not sure where to start, or would like a more guided walkthrough for setting up your environment, see the Tutorial.
Quickstart¶
First, bootstrap the cloud controller and create a model:
juju bootstrap <cloud name> <controller name>
juju add-model <model name>
Then, use the juju deploy command:
juju deploy postgresql --channel 16/stable -n <number_of_replicas>
If you are not sure where to start or would like a more guided walkthrough for setting up your environment, see the Tutorial.
Clouds¶
Set up different cloud services for a Charmed PostgreSQL deployment:
Deploy a cluster on a cloud using different availability zones:
Terraform¶
Deploy PostgreSQL and automate your infrastructure with the Juju Terraform Provider:
Networking and TLS encryption¶
Basic instructions about enabling TLS with Charmed PostgreSQL:
Example setup of external TLS/SSL access via Virtual IP (VIP):
Configure Juju spaces to separate network traffic:
Airgapped¶
Install PostgreSQL in an airgapped environment via Charmhub and the Snap Store Proxy:
Juju storage¶
Use volume provided by different clouds via Juju storage: