USD ($)
$
United States Dollar
Euro Member Countries
India Rupee
د.إ
United Arab Emirates dirham
ر.س
Saudi Arabia Riyal

Kubernetes Basics and Amazon EKS

Lesson 24/50 | Study Time: 40 Min

ECS is a great container orchestration service, but there is another option that has become the industry standard for running containers at scale, Kubernetes.

Originally built by Google and now open-source, Kubernetes is the most widely adopted container orchestration platform in the world.

Amazon EKS is AWS's fully managed Kubernetes service, removing the complexity of setting up and maintaining Kubernetes yourself.

What is Kubernetes?

Kubernetes — often abbreviated as K8s — is an open-source system that automates the deployment, scaling, and management of containerised applications.

It does everything ECS does, but with more flexibility, more control, and a much larger ecosystem of tools and community support.


Kubernetes is the right choice when you need:


1. Fine-grained control over how containers are scheduled and managed.

2. Portability — the same Kubernetes configuration runs on AWS, Azure, Google Cloud, or on-premises.

3. A rich ecosystem of tooling — monitoring, security, networking, and deployment tools built specifically for Kubernetes.

Core Kubernetes Concepts


1. Node: A node is a single server — physical or virtual — that runs containers. A Kubernetes cluster is made up of multiple nodes. On EKS, nodes are EC2 instances or Fargate.


2. Pod: A pod is the smallest deployable unit in Kubernetes. It contains one or more containers that share the same network and storage. In most cases, one pod runs one container.


3. Deployment: A deployment defines how many replicas of a pod should run and manages rolling updates. If you want three copies of your application running at all times, you define a deployment with three replicas. If one pod fails, the deployment automatically replaces it.


4. Service: A Kubernetes service exposes your pods to network traffic. Because pods are temporary — they start and stop frequently — a service provides a stable endpoint that always routes traffic to healthy, running pods.


5. Namespace: A namespace is a way to divide a single cluster into separate virtual environments. Teams use namespaces to isolate dev, staging, and production workloads within the same cluster, or to separate different applications from each other.


6. ConfigMap and Secret: A ConfigMap stores non-sensitive configuration data — environment variables, configuration files — that pods can reference. A Secret stores sensitive data — passwords, API keys, tokens — in an encoded format.

On EKS, secrets are typically integrated with AWS Secrets Manager for proper security.

How Kubernetes Works

This is the core principle of Kubernetes — declarative management. You declare what you want. Kubernetes makes it happen and keeps it that way.

What is Amazon EKS?

Amazon Elastic Kubernetes Service (EKS) is AWS's fully managed Kubernetes service. Running Kubernetes yourself is complex — you have to install it, configure it, manage the control plane, handle upgrades, and ensure high availability. EKS removes all of that.

With EKS, AWS manages the Kubernetes control plane — the brain of the cluster. You only manage the worker nodes where your containers actually run, and even those can be fully managed through AWS Fargate or EKS Managed Node Groups.


EKS Node Options


1. Managed Node Groups: AWS provisions and manages EC2 instances as worker nodes. You choose the instance type and size. AWS handles patching, updates, and replacement of unhealthy nodes.


2. Fargate on EKS: Completely serverless. No nodes to manage at all. Each pod runs on its own isolated Fargate instance. AWS handles all the underlying infrastructure.


3. Self-managed nodes: You fully control the EC2 instances. Maximum flexibility but maximum responsibility.

EKS vs. ECS — Which to Choose?


If you are building exclusively on AWS and want simplicity, ECS, especially with Fargate is the faster path.

If your organisation runs multi-cloud, needs advanced networking or scheduling control, or has teams already experienced with Kubernetes, EKS is the right choice.

Many large organisations use both — ECS for simpler workloads and EKS for complex, large-scale applications.

Drew Collins

Drew Collins

Product Designer
Profile

Class Sessions

1- What is DevOps? Principles, Culture, and Practices 2- The DevOps Lifecycle 3- Introduction to Cloud Computing 4- AWS Global Infrastructure 5- Core AWS Services Overview 6- Git Fundamentals 7- Branching Strategies 8- Pull Requests and Code Review Best Practices 9- Integrating Git with AWS CodeCommit and GitHub 10- Managing Secrets and Sensitive Files in Repositories 11- What is CI/CD? 12- Building Pipelines with AWS CodePipeline and CodeBuild 13- Automated Testing in CI 14- Deployment Strategies 15- Using GitHub Actions and Jenkins on AWS 16- Why Infrastructure as Code (IaC)? 17- AWS CloudFormation 18- Terraform on AWS 19- AWS Cloud Development Kit (CDK) 20- IaC Best Practices 21- Docker Fundamentals 22- Amazon ECR 23- Deploying Containers with Amazon ECS 24- Kubernetes Basics and Amazon EKS 25- Integrating Containers into CI/CD Pipelines 26- Serverless Computing Concepts and Use Cases 27- Building and Deploying AWS Lambda Functions 28- Event-Driven Automation with Amazon EventBridge 29- Orchestrating Workflows with AWS Step Functions 30- API Gateway Integration for Serverless APIs 31- Introduction to MLOps 32- Training and Deploying Models with Amazon SageMaker 33- Automating ML Pipelines with SageMaker Pipelines 34- Using Amazon CodeWhisperer and AI Tools for Code Automation 35- AI-Powered Testing, Anomaly Detection, and Incident Prediction 36- Observability Fundamentals 37- Amazon CloudWatch 38- Distributed Tracing with AWS X-Ray 39- Centralised Logging with Amazon OpenSearch Service 40- Setting Up Automated Alerts and Incident Response Workflows 41- Shift-Left Security 42- IAM Roles, Policies, and Least-Privilege Access 43- Static Code Analysis and Vulnerability Scanning in CI/CD 44- AWS Security Hub, GuardDuty, and Config for Compliance 45- Secrets Management with AWS Secrets Manager and Parameter Store 46- AWS Well-Architected Framework 47- Auto Scaling and Elastic Load Balancing for Resilience 48- Cost Monitoring with AWS Cost Explorer and Budgets 49- Disaster Recovery Strategies 50- Preparing Your Project for Production