mysql-persistent

by joaquinito2051

Helm chartv0.0.4App 0.0.4

This content is expermental, 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.0/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.

ValueDescriptionDefaultAdditional Information
database_service_nameThe name of the OpenShift Service exposed for the database.mysql-
mysql_userUsername for MySQL user that will be used for accessing the database.testuExpresion like: user[A-Z0-9]{3}
mysql_root_passwordPassword for the MySQL root user.testurExpression like: [a-zA-Z0-9]{16}
mysql_databaseName of the MySQL database accessed.testdb
mysql_passwordPassword for the MySQL connection user.testpExpression like: [a-zA-Z0-9]{16}
mysql_versionVersion of MySQL image to be used (8.0-el8, or latest).8.0-el8
namespaceThe OpenShift Namespace where the ImageStream resides.mysql-persistent-testing
memory_limitMaximum amount of memory the container can use.521Mi
volume_capacityVolume space available for data, e.g. 512Mi, 2Gi.1Gi

Deploy 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 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmysql-persistent is pinned at v0.0.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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