MySQL
Let's see how to run MySQL in a Kubernetes cluster with MySQL Operator for Kubernetes.
Configuration
We'll use the official Helm chart (code):
Deployment
bash
# adds Helm chart repository
helm repo add mysql-operator https://mysql.github.io/mysql-operator/
helm repo update
# installs
helm upgrade --install mysql-operator mysql-operator/mysql-operator --namespace mysql --create-namespace
# checks everything is ok
kubectl get pod -n mysql
# uninstalls
helm uninstall mysql -n mysql
kubectl delete ns mysql