- EKS-Cluster Setup
git clone https://github.com/Naresh240/cluster-autoscaler.git
cd cluster-autoscaler
kubectl apply -f service-account.yml
kubectl apply -f cluster-autoscaler-deployment.yml
kubectl get pod -n kube-system
kubectl apply -f deployment.yml
kubectl scale --replicas=30 deploy ca-demo-deployment
kubectl get nodes -o wide
Terminal - 1: Keep monitoring cluster autoscaler logs
kubectl -n kube-system logs -f deployment.apps/cluster-autoscaler
Terminal - 2: Scale down the demo application to 1 pod
kubectl scale --replicas=1 deploy ca-demo-deployment
Terminal - 2: Verify nodes
kubectl get nodes -o wide