Deploy MySQL from a Helm chart
Learn how to deploy MySQL from the Bitnami Helm chart. After you deploy MySQL on your Kubernetes cluster, you can manage the application with Astra Control.
MySQL is a validated app for Astra Control.
These instructions apply to both Astra Control Service and Astra Control Center.
|Applications deployed from Google Marketplace have not been validated. Some users report issues with discovery and/or backup with Google Marketplace deployments of Postgres, MariaDB, and MySQL.|
A cluster that has been added to Astra Control.
For Astra Control Center, you can add the cluster to Astra Control Center first or add the app first.
Updated versions of Helm (version 3.2+) and Kubectl installed on a local machine with the proper kubeconfig for the cluster
Two important notes on this process:
You must deploy your app after the cluster is added to Astra Control Service, not before. Astra Control Center will accept applications before or after the cluster is added to Astra Control Center.
We recommend that you deploy the Helm chart in a namespace other than the default.
Add the Bitnami chart repo:
helm repo add bitnami https://charts.bitnami.com/bitnami
Deploy MySQL with the command:
Helm install <name> --namespace <namespace> --create-namespace -–set persistence.storageClass=<storage_class>
If the volume size is changed, use Kibibyte (Ki), Mebibyte (Mi) or Gibibyte (Gi) units.
You need to define the storage class only in these situations:
You are using Astra Control Service and you don’t want to use the default storage class.
You are using Astra Control Center and haven’t yet imported the cluster into Astra Control Center. Or, you have imported the cluster, but don’t want to use the default storage class.
This does the following:
Creates a namespace.
Deploys MySQL on the namespace.
After the pods are online, you can manage the app with Astra Control. Astra Control allows you to manage an app with its name, at the namespace level, or by using a helm label.