Follow @YongkangHe on Twitter, Subscribe K8s Data Management Youtube Channel
I just want to build an AKS Cluster to play with the various Security and Data Management capabilities e.g. Security Scans, 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 a sample database, create policies etc.. The whole process is not that simple.
This script based automation allows you to build a ready-to-use AKS demo environment with PostgreSQL deployed in ~5 minutes. And you can enable AKS Container backups via Velero in ~1 minute. 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, run below command
git clone https://github.com/yongkanghe/aks-casa.git;cd aks-casa
- Optionally, you can customize the clustername, vm size, location, region, containername, etc.
vi setenv.sh
- To deploy an AKS cluster
./aks-deploy.sh
- To destroy the AKS cluster after testing
./aks-destroy.sh
Subscribe K8s Data Management Youtube Channel
- 1 min to enable AKS Backup via Velero
./velero-deploy.sh
- To clean up Velero for GKE
./velero-destroy.sh