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

Play it as a journeyTutor comes with a plan

Capstone: Kubernetes, Everything

Everything
Everything · Open board

The finale of this series and of the whole From Scratch track. One ordinary command is followed through every stage already built, so seven separate lessons collapse into a single program you can narrate start to finish.

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. A container is the sealed box a program runs inside, so it can only see its own files and its own network, and a pod is one or more containers sharing that box. Seven stages built the rest of it, one sentence each. You wrote down the state you wanted instead of a command to run, and running the same file twice changed nothing the second time (Kubernetes 01: Imperative to Declarative). A loop kept comparing what you’d asked for against what was real, forever, not just once (Kubernetes 02: The Reconcile Loop). Every change landed in one shared filing cabinet that anything could watch for updates (Kubernetes 03: Store and Watch). Asking for three pods made three pods appear, and stay at three (Kubernetes 04: Objects and Controllers). Each new pod got handed a machine to run on (Kubernetes 05: The Scheduler). That machine actually started it, and kept watching it (Kubernetes 06: The Kubelet). And one name out front let you reach any of them without knowing which one answered (Kubernetes 07: Services and Networking). This lesson adds nothing new. It runs all seven, once, in order.

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

  • July 2016: a guess that was wrong by fifty times
  • One file becomes a promise
  • The filing cabinet that tells nobody
  • A loop that reads instead of remembering
  • The tree that grows itself
  • A machine with your name on it
  • The row that becomes a process
  • Traffic arrives, and only then
  • One loop, seven times
  • Each piece leans on the one before it
  • The through-line
  • The symptom names the stage
  • What you already built, wearing a different name
  • What real Kubernetes adds, and why skipping it was fine
  • Run the whole thing
  • Check every stage

Terms it explains: pod, container, manifest, YAML, desired state, idempotent, API server, etcd, arbiter, watching, controller, reconcile, scheduler, node, cluster, kubelet, service, requests, spreads, Imperative → Declarative, The Reconcile Loop, Store and Watch, Objects and Controllers, The Scheduler, The Kubelet, Services and Networking, the watch, the API server, the controller-manager and scheduler, informers and leases, Admission webhooks, Your own object kinds, Access control, StatefulSets, DaemonSets, Jobs, CronJobs, Autoscalers, Ingress and service meshes, The tree moves, descheduler, cluster autoscaler, The scheduler sums.

Review From Scratch