Module 02 · DevOps · Kubernetes · about 25 min to read
Continue where you left off ×
Where a ship may berth
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.
The idea in 30 seconds
Kubernetes places a pod by the CPU and memory it requests, not by what it actually uses, so reserved room can sit idle while a new pod waits in Pending.
Free room split across machines is not one free space: a pod needs its whole request to fit on a single machine.
A CPU limit makes the kernel pause a program once it has used its share of each tenth of a second, even when the machine is idle, which is how Indeed’s services got slow in 2019.
A taint keeps pods off a machine unless they carry a matching permit, and the permit allows a pod in without sending it there.
A DaemonSet runs one copy on every machine, including machines added later, and still obeys taints.
A PodDisruptionBudget stops a planned drain of a machine from taking down more copies than you allowed, but not a crash.
Read the story
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 plans Already 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.
Review DevOps
Mark as read Saved in this browser, and to your account when you sign in.