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 01: Imperative to Declarative

Imperative to Declarative
Imperative to Declarative · Open board

Sits under the project lesson, Build Your Own Kubernetes, From Scratch, and is the inversion the rest of this series builds on top of. Hands off to Kubernetes 02: The Reconcile Loop, which turns the inversion into a mechanism.

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. The project lesson picked that target and named its six pieces. Nothing is built yet, so this lesson starts at the one choice that decides how every piece after it behaves.

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

  • 1993: fifty servers, and a physicist done writing scripts
  • The swap: not steps, but a fact
  • Three pods start, the script exits, and one crashes
  • The GPS that never finishes
  • Ask twice, get the same answer
  • The one thing nobody mentions: a fact still has to be merged in

Terms it explains: imperative, declarative, pod, it finishes, idempotent, merge, annotation, number, server-side apply.

Related paper

Review From Scratch