Ravindra BagaleCourses & study guides मराठी

Chapter 88: Amazon EKS for DevOps

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

  1. Confirm kind (or Minikube) works: kubectl get nodes.
  2. Write an eksctl ClusterConfig YAML for a tiny lab cluster in ap-south-1 with one managed node group of size 2. Do not create it unless a teacher gives a funded AWS account.
  3. List the AWS CLI commands you would run: eksctl create cluster -f ..., then aws eks update-kubeconfig, then kubectl get nodes.
  4. On kind, create namespace shop and a Deployment + Service named pay-api (any small image you already use in class).
  5. Practice cordon and drain on one kind node (if you have two nodes) or explain why a single-node kind cluster cannot drain safely.
  6. Draw or open the IRSA diagram: ServiceAccount annotation → OIDC → IAM role → sts get-caller-identity shape.
  7. Write an IAM policy in a text file that allows s3:PutObject only on arn:aws:s3:::shop-lab-uploads/* (example bucket name — create nothing without permission).
  8. 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.

Did you understand? Let us try it once more.