Logical MySQL Backup
Install the MySQL chart from the bitnami
Helm repository:
$ kubectl create namespace mysql
$ helm install --namespace mysql mysql-release bitnami/mysql
The following commands will install the MySQL Blueprint in the K10
namespace and add an annotation on the MySQL Deployment to instruct
K10 to use the Blueprint when performing operations on this MySQL
instance.
$ kubectl --namespace kasten-io apply -f \
https://raw.githubusercontent.com/kanisterio/kanister/0.61.0/examples/stable/mysql/blueprint-v2/mysql-blueprint.yaml
$ kubectl --namespace mysql annotate statefulset/mysql-release \
kanister.kasten.io/blueprint=mysql-blueprint
Finally, use K10 to backup and restore the application.