Follow @YongkangHe on Twitter, Subscribe K8s Data Management Youtube Channel
I just want to build an EKS 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 an EKS cluster from AWS Cloud if you are not familiar to it. After the EKS Cluster is up running, we still need to install a sample DB, create policies etc.. The whole process is not that simple.
This script based automation allows you to build a ready-to-use EKS demo environment with PostgreSQL deployed in about 20 minutes with eks-deploy.sh. For simplicity and cost optimization, the EKS cluster will have only one worker node and create a separate vpc and subnets. This is bash shell based scripts which might only work on Cloud Shell. Linux and MacOS terminal may work as well, but I haven't tested it yet.
- Go to open AWS Cloud Shell
- Clone the github repo, run below command
git clone https://github.com/yongkanghe/eks-casa.git
- Install the required tools (eksctl, kubectl, helm)
cd eks-casa;./awsprep.sh;. ./setenv.sh
- Optionally, you can customize the clustername, instance-type, zone, region
vi setenv.sh
- To deploy an EKS cluster
./eks-deploy.sh
- To destroy the EKS cluster after testing
./eks-destroy.sh
- 1 min to enable EKS Backup via Velero
./velero-deploy.sh
- To clean up Velero for EKS
./velero-destroy.sh
./falco-deploy.sh