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

Play it as a journeyTutor comes with a plan

The cluster that won’t sail (Kubernetes troubleshooting)

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

The harbour master’s foreman watching the crew: who is working, who needs swapping out. This lesson is what the foreman does when a ship will not leave the dock and nobody knows why.

Before you start. Kubernetes is the harbour master: you hand it a written order (“two copies of this program, always”), and it keeps making that true. Each running copy is a pod, a ship in its berth, and a Service is the beacon at the port’s mouth that sends traffic to whichever pods wear its label (The Harbor Master (pods, deployments, services), Services & Ingress, from the inside). The foreman from Self-Healing & Autoscaling restarts ships that sink and pulls unfit ones out of the rotation. This lesson is what you do when all that machinery is running and the ship still is not sailing.

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

  • 14 March 2023: Reddit goes dark for 314 minutes
  • Symptom first: what is the ship actually doing?
  • The harbour master’s logbook: Events
  • The ship’s own diary: logs from the last voyage
  • The beacon’s list: endpoints
  • 1. Pending: a request bigger than any machine
  • 2. ImagePullBackOff: a typo in the image tag
  • 3. CrashLoopBackOff: the app exits on a missing setting
  • 4. OOMKilled: a memory limit below what the process uses
  • 5. A Service with no endpoints: the label does not match
  • 6. A readiness probe on the wrong port: Running, but not Ready

Terms it explains: pod, status, Events, logs, endpoints, request, environment variable, limit, readiness probe, 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