CONTROL PLANEAPI SERVERETCDSCHEDULERCONTROLLERSNODE 1NODE 2NODE 3NOT READY1apiVersion: apps/v12kind: Deployment3metadata: {name: web}4spec:5 replicas: 6 selector: {matchLabels: {app: web}}7 template:8 metadata: {labels: {app: web}}9 spec:10 containers:11 - {name: web, image: nginx:1.27}3DESIRED–RUNNING0SERVICE webUSERS
Back: the control plane; middle: three worker nodesFront: the manifest, desired vs running, the ServiceMovers: Pods (sand = pending, blue = running), manifest, requestsA small Kubernetes cluster: the control plane at the back (API server, etcd, scheduler, controllers), three worker nodes in the middle. The Deployment manifest asks for replicas of nginx:1.27; the controllers create Pods, the scheduler places them, the kubelet starts them, and a Service spreads requests over them. When Node 3 fails, desired (4) and running (3) differ, so a controller makes a new Pod on a healthy node. Real clusters often run the control plane on several machines for safety, and a node usually holds many Pods. Three small nodes keep the picture readable.

The cluster and the manifest

  1. Kubernetes runs containers across a cluster: a group of machines called nodes. A control plane manages them. You normally do not say "start this here"; you say what you want, and Kubernetes keeps the real state matching it.

From file to running Pods

Scaling and self-healing

What happens

;; step 1/10 · cluster
cluster = control plane + worker nodes

control plane
  API server   the front door
  etcd         the store of state
  scheduler    picks a node per Pod
  controllers  close the gap

nodes: Node 1, Node 2, Node 3

Strictly, a Deployment creates a ReplicaSet and the ReplicaSet controller creates the Pods; the figure shows both controllers as one block. Both run inside kube-controller-manager. A dead node is not handled at once. Kubernetes adds a default toleration of 300 seconds for node.kubernetes.io/not-ready and unreachable, so Pods stay bound to the node for 5 minutes before they are evicted and replaced.