Deploy MySQL from a Helm chart
Contributors Download PDF of this page
Learn how to deploy MySQL from the standard stable chart. After you deploy MySQL on your Kubernetes cluster, you can manage the application with Astra.
MySQL is a validated app for Astra. Learn the difference between Validated and Standard apps.
|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 GKE cluster which has been added to Astra.
Updated versions of Helm (version 3.2+) and Kubectl installed.
Kubeconfig configured using the gcloud tool with a command like
gcloud container clusters get-credentials my-cluster-name
Two important notes on this process:
You must deploy your app after the cluster is added to Astra, not before.
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 mysql bitnami/mysql --namespace testdb --create-namespace --set db.database=test_db,db.user=test_db_user,db.password=NKhjs2wQPt8
This does the following:
Deploys MySQL on the
Creates a database named
Creates a user
|This method of setting the password at deployment is insecure. We do not recommend this for a production environment.|
After the pods are online, you can manage the app with Astra. Astra allows you to manage an app with its name, at the namespace level, or by using a helm label.