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.

đŸ—ī¸ The Architecture

🧠 Control Plane (Master)
🌐 API Server: The front door. Handles all requests.
📅 Scheduler: Decides where to put new Pods.
👮 Controller Mgr: Ensures desired state = actual state.
💾 etcd: The database storing cluster state.
đŸ’Ē Worker Node
âš™ī¸ Kubelet: The agent. Talks to the Master.
🔌 Kube-Proxy: Handles network rules & traffic.
đŸ“Ļ Runtime: (e.g. Docker) Runs the containers.

đŸ“Ļ 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 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)