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 04: Objects and Controllers

Objects and Controllers
Objects and Controllers · Open board

One reconcile loop becomes a tree of them, each one small, watching only the layer just below it.

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 (Build Your Own Kubernetes, From Scratch). So far the build keeps a store that remembers every object you declare and watches it instead of asking the same question over and over (Kubernetes 03: Store and Watch), and runs a reconcile loop that compares what you asked for to what’s running and changes one thing to close the gap, without remembering what it made (Kubernetes 02: The Reconcile Loop). This lesson stacks several of those loops into a tree, and shows that two things usually taught as separate Kubernetes features are the same four lines running one level apart.

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

  • 3 November 2016: a database team writes Kubernetes a loop it never shipped
  • One loop, then a tree of them
  • Whose shop is this?
  • The note stapled to the shop
  • Making the fight impossible
  • Who closes the shop when the manager quits?
  • The same loop, one shelf over

Terms it explains: Deployment, ReplicaSet, label selector, owner reference, adoption, garbage collector, adopted, Background, Foreground, Orphan, ReplicaSets, zero, unrepresentable.

Review From Scratch