Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 12 · From Scratch · Kubernetes · with code: Go · about 22 min to read

Play it as a journeyTutor comes with a plan

Kubernetes 06: The Kubelet

The Kubelet
The Kubelet · Open board

Follows Kubernetes 05: The Scheduler, which wrote down which node a pod belongs to. This lesson is the thing that reads that decision and makes it real.

Before you start. This series builds a small copy of Kubernetes: a program that keeps a fleet of machines running the programs you asked for, and restarts them when one dies. Kubernetes calls one running copy of a program a pod, the machine it runs on a node, and the whole fleet together the cluster. A program ships as an image, a sealed package of the program and everything it needs. A container is one running copy started from it, and a pod holds one or more containers. Our build can already do five things: hold a plain written description of what should be running, compare that description to reality and act on the gap forever, keep every description in one shared store that everyone reads and writes, split that watching job across many small watchers instead of one giant one, and decide which node a new pod should run on. This lesson is the one piece that turns that decision into a program actually running.

Lesson 91 of 117 in From Scratch

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • December 2020: the announcement everyone panicked about
  • The kubelet: the one program that actually starts anything
  • Why the Docker scare fizzled: the CRI is one doorway, not a wall
  • What “start the container” is hiding
  • One line, and the whole shape of the machine room
  • Liveness and readiness: the two questions that look like one

Terms it explains: pod, node, cluster, kubelet, CRI, liveness, readiness, A, cgroup, synchronised, amplifying, attributes wrongly, startup check, in place, makes anything real, namespace, delay.

Review From Scratch