This topic provides steps to install the Tanzu MySQL Operator using a quick-start script.
The script will deploy the Tanzu MySQL Operator from the Tanzu Network Registry, in the tanzu-mysql-for-kubernetes-system
namespace.
Copy the script on your local machine, and rename it, for example operator-install-script.bash
.
Make this file executable using:
chmod +x operator-install-script.bash
Retrieve your Tanzu Network credentials that allow you to access the VMware Tanzu registry.
Choose the version of the Tanzu Operator you wish to install, and run the script using:
./operator-install-script.bash <MYSQL_OPERATOR_VERSION> <TANZU_REGISTRY_USERNAME> <TANZU_REGISTRY_PASSWORD>
For example, to deploy a 1.6.1 Tanzu MySQL Operator run:
./operator-install-script.bash 1.6.1 <your-tanzu-registry-username> <your-tanzu-registry-password>
To watch the operator deployment, run a command similar to:
watch kubectl get all -n tanzu-mysql-for-kubernetes-system
After the Operator deployment, to create an instance refer to Creating MySQL Instances.
If you want to uninstall the operator, run the following commands:
helm uninstall tanzu-sql-with-mysql-operator -n tanzu-mysql-for-kubernetes-system
kubectl get crds -o name | grep with.sql.tanzu.vmware.com | xargs kubectl delete
kubectl delete namespace tanzu-mysql-for-kubernetes-system