This topic provides steps to install the VMware MySQL Operator using a quick-start script.
The script will deploy the VMware MySQL Operator from the Tanzu Network Registry, in the vmware-mysql-for-kubernetes-system namespace.
operator-install-script.bash.Make this file executable using:
chmod +x operator-install-script.bash
Choose the version of the VMware 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.10.0 VMware MySQL Operator run:
./operator-install-script.bash 1.10.0 <your-tanzu-registry-username> <your-tanzu-registry-password>
To watch the operator deployment, run a command similar to:
watch kubectl get all -n vmware-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 vmware-sql-with-mysql-operator -n vmware-mysql-for-kubernetes-system
kubectl get crds -o name | grep with.sql.tanzu.vmware.com | xargs kubectl delete
kubectl delete namespace vmware-mysql-for-kubernetes-system