mysql
MySQL is a fast, reliable, scalable, and easy to use open source relational database system. Designed to handle mission-critical, heavy-load production applications.
About this chart
MySQL packaged by Bitnami
MySQL is a fast, reliable, scalable, and easy to use open source relational database system. Designed to handle mission-critical, heavy-load production applications.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/mysql
Introduction
This chart bootstraps a MySQL replication cluster deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/mysql
These commands deploy MySQL on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override common.names.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override common.names.fullname template | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
clusterDomain | Cluster domain | cluster.local |
commonAnnotations | Common annotations to add to all MySQL resources (sub-charts are not considered). Evaluated as a template | {} |
commonLabels | Common labels to add to all MySQL resources (sub-charts are not considered). Evaluated as a template | {} |
extraDeploy | Array with extra yaml to deploy with the chart. Evaluated as a template | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
MySQL common parameters
| Name | Description | Value |
|---|---|---|
image.registry | MySQL image registry | docker.io |
image.repository | MySQL image repository | bitnami/mysql |
image.tag | MySQL image tag (immutable tags are recommended) | 8.0.31-debian-11-r10 |
image.digest | MySQL image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | MySQL image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Specify if debug logs should be enabled | false |
architecture | MySQL architecture (standalone or replication) | standalone |
auth.rootPassword | Password for the root user. Ignored if existing secret is provided | "" |
auth.createDatabase | Wheter to create the .Values.auth.database or not | true |
auth.database | Name for a custom database to create | my_database |
auth.username | Name for a custom user to create | "" |
auth.password | Password for the new user. Ignored if existing secret is provided | "" |
auth.replicationUser | MySQL replication user | replicator |
auth.replicationPassword | MySQL replication user password. Ignored if existing secret is provided | "" |
auth.existingSecret | Use existing secret for password details. The secret has to contain the keys mysql-root-password, mysql-replication-password and mysql-password | "" |
auth.usePasswordFiles | Mount credentials as files instead of using an environment variable | false |
auth.customPasswordFiles | Use custom password files when auth.usePasswordFiles is set to true. Define path for keys root and user, also define replicator if architecture is set to replication | {} |
initdbScripts | Dictionary of initdb scripts | {} |
initdbScriptsConfigMap | ConfigMap with the initdb scripts (Note: Overrides initdbScripts) | "" |
MySQL Primary parameters
| Name | Description | Value |
|---|---|---|
primary.name | Name of the primary database (eg primary, master, leader, ...) | primary |
primary.command | Override default container command on MySQL Primary container(s) (useful when using custom images) | [] |
primary.args | Override default container args on MySQL Primary container(s) (useful when using custom images) | [] |
primary.lifecycleHooks | for the MySQL Primary container(s) to automate configuration before or after startup | {} |
primary.hostAliases | Deployment pod host aliases | [] |
primary.configuration | Configure MySQL Primary with a custom my.cnf file | "" |
primary.existingConfigmap | Name of existing ConfigMap with MySQL Primary configuration. | "" |
primary.updateStrategy.type | Update strategy type for the MySQL primary statefulset | RollingUpdate |
primary.podAnnotations | Additional pod annotations for MySQL primary pods | {} |
primary.podAffinityPreset | MySQL primary pod affinity preset. Ignored if primary.affinity is set. Allowed values: soft or hard | "" |
primary.podAntiAffinityPreset | MySQL primary pod anti-affinity preset. Ignored if primary.affinity is set. Allowed values: soft or hard | soft |
primary.nodeAffinityPreset.type | MySQL primary node affinity preset type. Ignored if primary.affinity is set. Allowed values: soft or hard | "" |
primary.nodeAffinityPreset.key | MySQL primary node label key to match Ignored if primary.affinity is set. | "" |
primary.nodeAffinityPreset.values | MySQL primary node label values to match. Ignored if primary.affinity is set. | [] |
primary.affinity | Affinity for MySQL primary pods assignment | {} |
primary.nodeSelector | Node labels for MySQL primary pods assignment | {} |
primary.tolerations | Tolerations for MySQL primary pods assignment | [] |
primary.priorityClassName | MySQL primary pods' priorityClassName | "" |
primary.schedulerName | Name of the k8s scheduler (other than default) | "" |
primary.terminationGracePeriodSeconds | In seconds, time the given to the MySQL primary pod needs to terminate |
Deploy mysql with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mysql 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 chartmysql is pinned at v9.4.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