This Helm chart deploys a CNPG (Cloud Native PostgreSQL) cluster on Kubernetes. It provides a customizable and scalable PostgreSQL database solution.
- Kubernetes 1.16+
- Helm 3.0+
To install the chart, use the following command:
helm install <release-name> ./clustersReplace <release-name> with your desired release name.
The following table lists the configurable parameters of the CNPG chart and their default values:
| Parameter | Description | Default |
|---|---|---|
instances |
Number of PostgreSQL instances in the cluster | 3 |
postgresql.parameters.max_worker_processes |
Maximum number of worker processes | 60 |
storage.size |
Size of the storage for each instance | 1Gi |
You can override these values by specifying them in a values.yaml file or directly in the command line using --set.
After installation, you can access the PostgreSQL database using the credentials stored in the Kubernetes secret. Use the following command to retrieve the username and password:
kubectl get secret <release-name>-app -o jsonpath="{.data.username}" | base64 --decode
kubectl get secret <release-name>-app -o jsonpath="{.data.password}" | base64 --decodeTo uninstall the chart, use the following command:
helm uninstall <release-name>For further details and advanced configurations, please refer to the documentation in the templates/NOTES.txt file.