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

Play it as a journeyTutor comes with a plan

Where a ship may berth

Under the Hood
Under the Hood · Open board

The harbour’s machinery seen from the inside. One small box on it says “picks a node for a pod”. This lesson is about that box: the berth master, and the rules it follows when it decides where each ship may tie up.

Before you start. A pod is one running copy of a program, a ship, and a node is one machine in the cluster (the group of machines Kubernetes runs on), a quay where ships tie up (Pods, ReplicaSets & Deployments (the ownership chain)). Inside Kubernetes, one part called the scheduler picks a node for every new pod, and nothing runs until it has picked (Under the Hood (Kubernetes Internals)). When it cannot pick, the pod sits in Pending, the status you learned to read in The cluster that won't sail (Kubernetes troubleshooting). From Processes, Threads & the Kernel you need one word: the kernel, the part of the machine that decides which program runs next.

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

  • December 2019: fast code, slow answers, and a processor with room to spare
  • The berth master reads the papers, not the ship: a request
  • The crane allowance: a limit, and who is cut loose first
  • Reserved quays: a taint, and the permit that gets past it
  • A boat at every quay: a DaemonSet
  • Closing a quay for repairs: a PodDisruptionBudget
  • The three quays
  • 1. Packing by requests: six berth, one waits
  • 2. Limits, and the three QoS classes
  • 3. A taint, a toleration, and a DaemonSet
  • 4. Affinity: four sisters, three quays
  • 5. A PodDisruptionBudget meets a drain
  • 6. Ships that leave: a Job and a CronJob

Terms it explains: pod, node, scheduler, request, limit, taint, DaemonSet, PodDisruptionBudget, QoS class, toleration, Pod anti-affinity, Job, CronJob, API server, containerd / runc, controller manager.

Lab

Each ship books quay space before it docks, and the harbour master trusts the booking. How much should a ship book?

Drag Quay booked per ship from 100m to 1000m and watch Squeezed at the tide reach zero.

Open The berth plan

Review DevOps