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 command can be used create the MySQL Blueprint in the K10 namespace.

$ kubectl --namespace kasten-io apply -f \
    https://raw.githubusercontent.com/kanisterio/kanister/0.85.0/examples/mysql/blueprint-v2/mysql-blueprint.yaml

Alternatively, use the Blueprints page on K10 Dashboard to create the Blueprint resource.

Once the Blueprint is created, add an annotation on the MySQL Deployment to instruct K10 to use the Blueprint when performing operations on this MySQL instance.

$ kubectl --namespace mysql annotate statefulset/mysql-release \
    kanister.kasten.io/blueprint=mysql-blueprint

Finally, use K10 to backup and restore the application.