velero-kind-istio

This is a demo for backup kubernetes via velero

Prerequisites

download GCS service account credentials to JSON file names gcs_key.json and put it to .keys at project root path

Usage

initialize terraform module

$ terraform init

create k8s cluster with kind, and install all components - istio, metallb, minio, mysql

$ terraform apply -auto-approve

execute backup

$ velero backup create mysql-backup --include-namespaces=mysql

execute restore

$ velero restore create --from-backup=mysql-backup

for destroy

$ terraform destroy -auto-approve

mysql-backup