Logical MySQL Backup for OpenShift

To demonstrate data protection for MySQL provided and deployed with OpenShift, the install should be performed according to the documentation provided here.

$ oc create namespace mysql
$ oc new-app https://raw.githubusercontent.com/openshift/origin/master/examples/db-templates/mysql-ephemeral-template.json \
      --namespace mysql -p MYSQL_ROOT_PASSWORD=secretpassword
Copy to clipboard

A Blueprint resource should be created via the following command:

$ oc --namespace kasten-io apply -f \
    https://raw.githubusercontent.com/kanisterio/kanister/0.58.0/examples/stable/mysql-deploymentconfig/blueprint-v2/mysql-dep-config-blueprint.yaml
Copy to clipboard

Once the Blueprint is created, annotate the DeploymentConfig with the below annotations to instruct K10 to use this Blueprint while performing data management operations on the MySQL instance.

$ oc --namespace mysql annotate deploymentconfig/mysql \
    kanister.kasten.io/blueprint=mysql-dep-config-blueprint
Copy to clipboard

Finally, use K10 to backup and restore the application.