How it works · 9 of 38 Core

What is Kubernetes and what does Kubernetes do?

A head waiter for containers

Kubernetes: Kubernetes runs containers across a group of servers: you write down what should be running, and it keeps placing, restarting and replacing containers until the servers match what you wrote, within the room the servers have.

Loading the animation…

Say it like this Kubernetes runs containers across many servers: you write down what should be running, and it keeps placing and replacing containers until the servers match the note, but it can only use the room you give it.

Under the hood — for builders
The note, for real
The note on the wall is a Deployment: a short file you hand to Kubernetes. "replicas: 3" is shop × 3. Each container's chairs are its requests, e.g. cpu: 500m (half a processor) and memory: 256Mi. Kubernetes seats by requests, not by what the container actually uses.
How a chair is chosen
The scheduler works in two steps (Kubernetes docs). Filtering keeps only servers with enough free requested CPU and memory. Scoring ranks the rest; "most free chairs", used in the scene, is one such rule. No server passes the filter: the container stays Pending.
How big it goes
Kubernetes is designed for clusters within all four of these limits at once.
Terms
Node: one server in the cluster (a table). Pod: the smallest thing Kubernetes seats, one or more containers that always sit together. Cluster: all the nodes one Kubernetes looks after. Controller: a loop that compares the note with the room and fixes the gap. Pending: a pod no node can fit.
Watch out
No requests set: the scheduler seats blind and servers get overfull. Pending pods: add nodes (a cluster autoscaler can) or lower requests. One copy is not "self-healing": a single replica still goes down with its server.
Measure it
Pods Pending and for how long; container restarts per hour; requested vs actually used CPU and memory per node.
Sources
kubernetes.io: "Kubernetes Scheduler" (filtering and scoring), "Taints and Tolerations" (taint based evictions, 300 s), "Considerations for large clusters". Read November 2026.

What happens in the Kubernetes animation, step by step?

  1. Five containers wait at the door. Three servers, drawn as tables, have four chairs each. Someone has to decide who sits where.
  2. Your turn: you are the scheduler. Tap a table to seat the container in amber. Only a table with enough free chairs will take it.
  3. Kubernetes does that job, for every container, without being asked twice. You only write a note: shop × 3, search × 2. It keeps checking the room against the note.
  4. A server dies. The note says 3 shops, the room has 2. After a 5-minute grace period, Kubernetes seats new copies on the tables that still stand.
  5. Now ask for shop × 4. No table has two free chairs, so the new copy waits at the door: Pending. Kubernetes keeps what you asked for; it cannot add servers.
  6. The containers now talk to each other, and some to the internet. Which of them should anyone outside be able to reach? Next: private networks and firewalls.

What everyday example explains Kubernetes?

A head waiter with a booking sheet. You don't seat anyone; the sheet says "three tables of two for the shop". The waiter seats each party where there are enough free chairs, and when a table breaks, reseats its guests elsewhere. But the waiter can't build a new table: with no free chairs, a party waits at the door.

Why should a team care about Kubernetes?

Before adopting Kubernetes, decide whether you have enough services and servers to need a head waiter at all; if you do, set what each container requests and keep spare room or a node autoscaler, or "self-healing" ends with copies stuck at the door.