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 24 min to read

Play it as a journeyTutor comes with a plan

Kubernetes 05: The Scheduler

The Scheduler
The Scheduler · Open board

Sits under the build in Build Your Own Kubernetes, From Scratch. Follows Kubernetes 04: Objects and Controllers, which made pods exist. This lesson is what gives a pod a home.

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 they die. Kubernetes calls one running copy of a program a pod, one machine in the fleet a node, and the whole fleet together the cluster. So far, our small copy already keeps asking whether what is running matches what was asked for, and closes the gap when it does not (Kubernetes 02: The Reconcile Loop). And it can create a pod as a row in its record, with one field left empty where a node’s name should go (Kubernetes 04: Objects and Controllers). This lesson is entirely about how that field gets filled in.

Lesson 90 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

  • Berkeley, 2011: one room, too many landlords
  • The two questions, in a fixed order
  • The maître d’, which is the board’s whole idea
  • What filter is really counting: promises, not plates
  • Score: two honest policies, and a genuine trade
  • Bind is the last write, and it is final

Terms it explains: pod, node, cluster, Mesos, filter, score, bind, pending, request, taint, Affinity, CPU is compressible, Memory is incompressible, derived, never declared, image locality, descheduler, cluster autoscaler.

Related paper

Review From Scratch