☁️ Cloud

AWS EKS

AWS's managed Kubernetes service

📖 Detailed Explanation

AWS EKS (Elastic Kubernetes Service) is a fully managed Kubernetes service provided by Amazon Web Services. AWS operates the Control Plane (API server, etcd, scheduler, Controller Manager) and guarantees a 99.95% SLA. Users only need to manage the Worker Nodes, and the Control Plane cost is $0.10/hour per cluster per month (about $72/month).

Since its GA (general availability) in 2018, it has become the most widely used managed Kubernetes. It is natively integrated with other AWS services (ALB, RDS, S3, IAM, etc.), making it the most natural choice when a company already using the AWS ecosystem adopts container orchestration.

EKS assigns Pods actual IPs within the VPC through the VPC CNI plugin. This allows Pods to communicate directly with other resources in the VPC (RDS, ElastiCache, etc.) and lets Security Groups be applied at the Pod level. In addition, if you configure a Fargate profile, you can also run Pods serverlessly.

In practice, EKS is used for a variety of purposes such as microservice architectures, CI/CD pipelines, and ML workloads. Using the eksctl CLI, you can build a production-grade cluster in under 10 minutes, and IaC management with AWS CDK or Terraform is also easy.

💻 Code Example

# eksctl로 EKS 클러스터 생성 (가장 간단한 방법)
eksctl create cluster \
  --name my-eks-cluster \
  --region ap-northeast-2 \
  --nodegroup-name standard-workers \
  --node-type t3.medium \
  --nodes 3 \
  --nodes-min 2 \
  --nodes-max 5 \
  --managed

# kubeconfig 자동 설정됨, 바로 사용 가능
kubectl get nodes

# Fargate 프로파일 추가 (서버리스 Pod 실행)
eksctl create fargateprofile \
  --cluster my-eks-cluster \
  --name fp-default \
  --namespace default

# OIDC Provider 생성 (IAM Roles for Service Accounts용)
eksctl utils associate-iam-oidc-provider \
  --cluster my-eks-cluster \
  --approve

# AWS Load Balancer Controller용 IAM 서비스 어카운트 생성
eksctl create iamserviceaccount \
  --cluster my-eks-cluster \
  --namespace kube-system \
  --name aws-load-balancer-controller \
  --attach-policy-arn arn:aws:iam::aws:policy/AmazonEKS_LB_Controller \
  --approve

🗣️ Say It Like This in Practice

💬 In an Architecture Meeting
"If you use IRSA (IAM Roles for Service Accounts) in EKS, you can grant a least-privilege IAM Role to each Pod. It is much safer from a security standpoint than granting permissions to the entire node, as with an EC2 Instance Profile. You can give that Role only to the services that need S3 access."
💬 In an Interview
"I have experience operating EKS. I built the cluster with eksctl and configured an ALB Ingress with aws-load-balancer-controller. I introduced Karpenter to optimize node autoscaling, and compared to Cluster Autoscaler, node provisioning time was reduced from an average of 90 seconds to 30 seconds."
💬 In a cost optimization discussion
"If you add a Spot instance node group and schedule stateless workloads there, you can save up to 70% on costs. With Karpenter, when a Spot interruption occurs, it automatically falls back to On-Demand, so availability is also fine."

Take a mock interview on this topic → WIA SOOM AI Interview · Start for free

⚠️ Common Mistakes & Cautions

❌
Ignoring the VPC CNI IP exhaustion problem

EKS's VPC CNI assigns a VPC IP to each Pod. If the subnet CIDR is small, IPs run short as the number of Pods grows. A /24 subnet provides only about 250 IPs, so for large clusters, plan to use a /20 or larger subnet or a Secondary CIDR.

❌
Operating without an upgrade plan

EKS forcibly upgrades old versions under its 14-month support policy. When upgrading from 1.27 to 1.28, if you do not check API changes (e.g., removal of deprecated APIs) in advance, deployments may break. Check for deprecated APIs in advance with tools such as Pluto.

✅
The right approach

In production, use Managed Node Groups together with Karpenter. If you place System Pods (CoreDNS, kube-proxy) on Managed Node Groups and general workloads on nodes managed by Karpenter, you can get both cost efficiency and stability.

🔗 Related Terms

📚 Learn More