Kubernetes (K8s)

The operating system for the cloud. Kubernetes is an Orchestrator that manages thousands of containers automatically, ensuring they are running, healthy, and scaled correctly.

đŸ“Ļ Core Vocabulary

đŸ”ĩ The Pod

The smallest unit. Think of it as a Wrapper around your container. K8s doesn't run containers directly; it runs Pods.

📄 The Deployment

The Blueprint. You tell it: "I want 3 replicas of App V1". The Deployment ensures that exactly 3 Pods are always running.

đŸ–Ĩī¸ The Node

The Hardware (Server). Can be a physical machine or a VM. Pods run on Nodes. A cluster is made of many Nodes.

⚓ The Service

The Front Desk. Pods die and change IPs constantly. The Service gives you a stable IP to reach the fleet.

đŸ•šī¸ Fleet Commander Simulator

Your Role: You are the Control Plane. Define your "Desired State" and watch K8s make it happen.
Try clicking on a Pod to kill it and see Self-Healing in action.

Desired State
Replicas 3
Deployment Strategy
> Cluster Initialized.
> Waiting for instructions...
K8s Cluster
Node-01 (2 Core / 4GB)
Node-02 (2 Core / 4GB)

🧠 Why is it so popular?

Self-Healing

If a server crashes at 3 AM, you don't wake up. K8s detects the dead node and moves the Pods to a healthy node automatically.

Rolling Updates

Update your app from v1 to v2 with Zero Downtime. K8s replaces Pods one by one, ensuring traffic is only sent to healthy instances.

Bin Packing

K8s is like Tetris. It fits as many containers as possible onto your servers to save money on cloud bills.