Chapter 88: Amazon EKS for DevOps
88.10 Lab — kind stand-in, eksctl shape and IRSA diagram
Story. You are helping a Zerodha-style trading API team train juniors. Real EKS clusters cost money (control plane plus nodes — check current pricing). For class you use kind as a free Kubernetes stand-in for kubectl drills. You still write the eksctl config you would use on AWS, and you walk the IRSA trust path on a whiteboard (or the diagram in this lesson). When the company account is ready, the same kubectl habits apply on EKS.
Lab steps
- Confirm kind (or Minikube) works:
kubectl get nodes. - Write an eksctl
ClusterConfigYAML for a tiny lab cluster inap-south-1with one managed node group of size 2. Do not create it unless a teacher gives a funded AWS account. - List the AWS CLI commands you would run:
eksctl create cluster -f ..., thenaws eks update-kubeconfig, thenkubectl get nodes. - On kind, create namespace
shopand a Deployment + Service namedpay-api(any small image you already use in class). - Practice cordon and drain on one kind node (if you have two nodes) or explain why a single-node kind cluster cannot drain safely.
- Draw or open the IRSA diagram: ServiceAccount annotation → OIDC → IAM role →
sts get-caller-identityshape. - Write an IAM policy in a text file that allows
s3:PutObjectonly onarn:aws:s3:::shop-lab-uploads/*(example bucket name — create nothing without permission). - Optional funded account only: create the cluster with eksctl, install AWS Load Balancer Controller with Helm (chapter 85), apply a sample Ingress, then delete the cluster the same day to stop charges.
What good looks like
- You can explain managed control plane vs nodes in one minute.
- Your eksctl file has region, version and a node group.
- You can cordon/drain safely on a multi-node cluster.
- You never pasted real AWS access keys into Git or a lesson file.
- You know approximate cost levers: control plane hours, EC2/Fargate, ALB, NAT — and you verify on AWS pricing pages.
kind is for free practice. eksctl against a real account spends money. Delete lab clusters the same day.
kind free practice साठी. खऱ्या account वर eksctl = पैसे. Lab cluster तोच दिवस delete करा.
kind मुफ्त practice के लिए. असली account पर eksctl = पैसे. Lab cluster उसी दिन delete करें.
Did you understand? Let us try it once more.