Follow @YongkangHe on Twitter, Subscribe K8s Data Management Youtube Channel
I just want to build an AKS Cluster to play with the various Data Management capabilities e.g. Container's Backup/Restore, Disaster Recovery and Application Mobility.
It is challenging to create AKS Cluster from Azure Cloud if you are not familiar to it. After the AKS Cluster is up running, we still need to install Kasten, create a sample database, create location profile, backup policies etc.. The whole process is not that simple.
This script based automation allows you to build a ready-to-use Kasten K10 demo environment running on AKS in about 10 minutes. For simplicity and cost optimization, the AKS cluster will have only one worker node in the newly created vnet and subnet. This is bash shell based scripts which has been tested on Cloud Shell. Linux or MacOS terminal has not been tested though it might work as well. If you don't have an Azure account, please watch the video by Louisa below to sign up a free trial account in 5 minutes.
Subscribe K8s Data Management Youtube Channel
- Go to open Azure Cloud Shell
- Clone the github repo to your local host, run below command
git clone https://github.com/yongkanghe/aks-k10.git
- Create Azure App Registration first
cd aks-k10;./createapp.sh
- Optionally, you can customize the clustername, vm size, location, region, containername, etc.
vi setenv.sh
Don't have an AKS cluster | Already have an AKS cluster | Have nothing |
---|---|---|
Deploy AKS only | Deploy K10 only | Deploy AKS and K10 |
./aks-deploy.sh |
./k10-deploy.sh |
./deploy.sh |
1. Create an AKS Cluster | 1. Create an AKS Cluster | |
1. Install Kasten K10 | 2. Install Kasten K10 | |
2. Deploy a MySQL database | 3. Deploy a MySQL database | |
3. Create an Azure Blob location | 4. Create an Azure Blob location | |
4. Create a backup policy | 5. Create a backup policy | |
5. Kick off on-demand backup job | 6. Kick off on-demand backup job |
Destroy AKS only | Destroy K10 only | Destroy AKS and K10 |
---|---|---|
./aks-destroy.sh |
./k10-destroy.sh |
./destroy.sh |
1. Remove the AKS Cluster | 1. Remove the Resource Group | |
1. Remove MySQL database | + Remove AKS Kubernetes Cluster | |
2. Remove Kasten K10 | + Remove the disks and snapshots | |
3. Remove Azure Blob storage bucket | + Remove the storage account etc. |
./runonce.sh
- Take a snapshot of Application Components
- Take a snapshot of Application Configurations
- Take a snapshot of Workload MySQL
- Export the snapshot to Azure Blob Storage
Subscribe K8s Data Management Youtube Channel
https://blog.kasten.io/posts/backup-and-recovery-in-microsoft-azure-with-kasten-k10/