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 02 · DevOps · Kubernetes · about 20 min to read

Play it as a journeyTutor comes with a plan

Self-Healing & Autoscaling

Self-Healing and Autoscaling
Self-Healing and Autoscaling · Open board

The harbour master’s foreman watching the crew: who’s actually working, who needs swapping out, and when to call in more hands.

Before you start. From One Crate to a Fleet (why Kubernetes) gave you the loop that keeps checking what’s running against what you asked for and fixes the gap; The Harbor Master (pods, deployments, services) gave you the objects it watches, Pods, the crates it keeps at a fixed count. Kubernetes is the harbour master from The Harbor Master (pods, deployments, services): the program that keeps a fleet of machines running the containers you asked for, and keeps checking. This lesson is what that loop has to do once a headcount stops being enough of an answer: ask whether each crate is actually fit for work, and how many you even need right now.

Lesson 12 of 70 in DevOps

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

  • 2008: three days with the ships not moving
  • 2010: a program whose whole job is to kill things
  • Running is not the same as healthy
  • The third question: are you even here yet
  • Swapping the crew without stopping the ships
  • When the docks back up, call in more hands
  • Probes, timed
  • Rolling update: the shutdown race
  • HPA: one line of arithmetic
  • Reproduce the measurements (a throwaway kind cluster is enough)

Terms it explains: Chaos Monkey, liveness probe, readiness probe, startup probe, HPA, container, 6 seconds, 0.12s, before, budget that includes `preStop`, 10%, fifteen seconds apart, stabilisation window, restarted, pulled from traffic, liveness.

Lab

Your traffic goes up eightfold in three minutes and the HPA is working perfectly. Who still gets an error?

Drag How long a new pod takes to serve to its longest, stay on Follow every reading, and watch Who got an error.

Open The autoscaler lag

Review DevOps