redhat-mysql-persistent
This content is experimental, do not use it in production. MySQL database service, with persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mysql-container/blob/master/8.4/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
MySQL helm chart
A Helm chart for building and deploying a MySQL 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. | mysql | - |
mysql_user | Username for MySQL user that will be used for accessing the database. | testu | Expresion like: user[A-Z0-9]{3} |
mysql_root_password | Password for the MySQL root user. | testur | Expression like: [a-zA-Z0-9]{16} |
mysql_database | Name of the MySQL database accessed. | testdb | |
mysql_password | Password for the MySQL connection user. | testp | Expression like: [a-zA-Z0-9]{16} |
mysql_version | Version of MySQL image to be used (8.4-el9, or latest). | 8.4-el10 | |
namespace | The OpenShift Namespace where the ImageStream resides. | mysql-persistent-testing | |
memory_limit | Maximum amount of memory the container can use. | 521Mi | |
volume_capacity | Volume space available for data, e.g. 512Mi, 2Gi. | 1Gi |
Deploy redhat-mysql-persistent with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has redhat-mysql-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 chartredhat-mysql-persistent is pinned at v0.0.6 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