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

Play it as a journeyTutor comes with a plan

Kubernetes 03: Store and Watch

Store and Watch
Store and Watch · Open board

Follows Kubernetes 02: The Reconcile Loop, which needed to observe the world. This is the thing it observes.

Before you start. This series builds a small copy of Kubernetes: a program that keeps a fleet of machines (a cluster) running the programs you asked for, and restarts them when they die. So far our build can write down what should be true instead of listing steps, and it has a controller, a loop that checks what is true against what should be true and nudges the two closer, pass after pass. Kubernetes 02: The Reconcile Loop left one question open: checking everything every pass does not scale, so where does “what is true” actually live, and how does a controller learn the moment it changes?

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

  • 2013: two schedulers, one fleet, and no traffic cop between them
  • One radar picture, not a phone call
  • The gap between looking and listening
  • 410 Gone: when the store says start over
  • Two writers, no lock

Terms it explains: `ListAndWatch`, watch, `resourceVersion`, etcd, compaction, conflict, opaque, bookmark.

Review From Scratch