postgresql-persistent
This content is expermental, do not use it in production. PostgreSQL database service, with persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/. NOTE: Scaling to more than one replica is not supported. You must have persistent volumes available in your cluster to use this template.
About this chart
PostgreSQL helm chart
MariaDB helm chart
A Helm chart for building and deploying a PostgreSQL application on OpenShift.
For more information about helm charts see the official Helm Charts Documentation.
You need to have access to a cluster for each operation with OpenShift 4, like deploying and testing.
Values
Below is a table of each value used to configure this chart.
| Value | Description | Default | Additional Information |
|---|---|---|---|
database_service_name | The name of the OpenShift Service exposed for the database. | postgresql | - |
postgresql_user | Username for PostgreSQL user that will be used for accessing the database. | - | Expresion like: user[A-Z0-9]{3} |
postgresql_database | Name of the PostgreSQL database accessed. | sampledb | |
postgresql_password | Password for the PostgreSQL connection user. | Expression like: [a-zA-Z0-9]{16} | |
postgresql_version | Version of PostgreSQL image to be used (10-el7, 10-el8, or latest). | 10-el8 | |
namespace | The OpenShift Namespace where the ImageStream resides. | openshift | |
memory_limit | Maximum amount of memory the container can use. | 521Mi | |
volume_capacity | Volume space available for data, e.g. 512Mi, 2Gi. | 1Gi |
Deploy postgresql-persistent with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has postgresql-persistent on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpostgresql-persistent is pinned at v0.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply