How Kubernetes runs your app

An animated explainer of Kubernetes: the API server, etcd, the scheduler, kubelet, Pods, Services and self-healing.

Chapters

  1. Your wish list: You write a wish list: three copies of your app. kubectl apply sends it to the API server, which checks it and saves it in etcd.
  2. Pods find a home: The controller sees want 3, have 0, so it creates 3 Pods. The scheduler gives each Pod a node with enough free CPU and memory.
  3. Start and serve: On each node the kubelet pulls the image and starts the container. A Service then gives all Pods one stable address and spreads requests between them.
  4. Self-healing: A Pod crashes. The controller sees 2 of 3 and starts a replacement, no human needed. Reality keeps matching your wish list.

Make an animated explainer of your own topic →

More explainers

← All explainers

Try AI Flowchart free →