mariadb-persistent
This content is expermental, do not use it in production. MariaDB database service, with persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mariadb-container/blob/master/10.3/root/usr/share/container-scripts/mysql/README.md. 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
MariaDB helm chart
A Helm chart for building and deploying a MariaDB 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. | mariadb | - |
mysql_user | Username for MariaDB user that will be used for accessing the database. | - | Expresion like: user[A-Z0-9]{3} |
mysql_root_password | Password for the MariaDB root user. | Expression like: [a-zA-Z0-9]{16} | |
mysql_database | Name of the MariaDB database accessed. | sampledb | |
mysql_password | Password for the MariaDB connection user. | Expression like: [a-zA-Z0-9]{16} | |
mariadb_version | Version of MariaDB image to be used (10.3-el7, 10.3-el8, or latest). | 10.3-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 mariadb-persistent with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mariadb-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 chartmariadb-persistent is pinned at v0.0.2 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