Skip to main content

03. Amazon EKS

Amazon EKS (Elastic Kubernetes Service) is a fully managed Kubernetes service that makes it easy to run Kubernetes clusters on AWS or on-premises.

Kubernetes (often called K8s) is an open-source system for automating the deployment, scaling, and management of containerized applications.


🧩 What is Kubernetes?

  • Kubernetes is a container orchestration platform originally developed by Google.
  • It manages clusters of servers that run containers (usually Docker containers).
  • It decides where to run containers, how to scale them, and how they communicate.

⚙️ EKS Architecture

EKS consists of:

  • Control Plane (Managed by AWS):
    Manages the Kubernetes API, scheduling, and cluster operations.
  • Worker Nodes:
    EC2 instances or Fargate tasks where your containers actually run.
  • Pods:
    Smallest deployable unit in Kubernetes — usually runs one or more containers.
FeatureDescription
Managed Control PlaneAWS runs and scales the Kubernetes control plane for you.
Runs on EC2 or FargateChoose between self-managed EC2 instances or serverless Fargate.
Highly AvailableControl plane runs across multiple AWS Availability Zones.
IntegrationWorks seamlessly with IAM, VPC, CloudWatch, and ECR.
Multi-Cloud CapabilityKubernetes is cloud-agnostic — you can run workloads across AWS, Azure, GCP, or on-prem.

🖼️ Architecture Diagram (Conceptual)

          +----------------------+
| Developers / CI-CD |
+----------+-----------+
|
v
+----------------------+
| Amazon EKS Cluster |
| (Managed Control Plane) |
+----------+-----------+
|
+----------+-----------+
| Worker Nodes |
| (EC2 or Fargate) |
+----------+-----------+
|
+----------+-----------+
| Pods / Containers |
| (Docker, etc.) |
+----------+-----------+
|
v
+----------------------+
| Amazon ECR |
| (Stores Container Images) |
+----------------------+

🧭 Flow Summary

  1. Developers build and push container images to Amazon ECR.
  2. EKS Control Plane manages the cluster and schedules pods.
  3. Worker Nodes (EC2 or Fargate) run these pods.
  4. EKS integrates with IAM, CloudWatch, and VPC for security and monitoring.

🧩 ECS vs EKS


FeatureECSEKS
Container OrchestratorAWS proprietaryKubernetes (open-source)
Control PlaneManaged by AWSManaged by AWS
Multi-CloudNo (AWS only)Yes (cloud-agnostic)
Launch TypesEC2 & FargateEC2 & Fargate
ComplexityEasierMore flexible but complex
Use CaseAWS-native workloadsMulti-cloud / hybrid environments
IAM Roles Example