The two ways to ship a
thing, side by side: one you tend by hand for years, one you declare and forget.
Before you start. Two ideas from earlier lessons, in one line each. A team soon
needs more than one machine, and a group of machines run together is a fleet
(From One Crate to a Fleet (why Kubernetes)). And you can write down what the fleet should be running
and let a background loop keep making that true, even when machines die
(The Harbor Master (pods, deployments, services)). This lesson assumes both
and spends its length on the question they skip: a VM and a container both claim to
isolate your app, so what do you actually trade choosing between them, and when is the
fleet not worth having at all? If a process and the kernel are new, Processes, Threads & the Kernel in How Computers Work shows them in one read.
Lesson 9 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.
Or start free: a free account opens lessons 2 and 3 of every track.
In this lesson
2012: a slide with a cow on it
The pet’s whole body is its own
The herd shares one paddock
One kernel bug, and every animal in the herd is exposed
The paddock needs a foreman
Terms it explains: pets and cattle, virtual machine, kernel, hypervisor, container, namespace, cgroup, cluster, scheduler, node, pod, kubelet, CVE-2019-5736, Dirty COW, Dirty Pipe, CVE-2022-0185, VENOM, microVM, user-space kernel, a VM per pod, $150-250/month, claims, request, limit, polls, local kubelet, taint, One team, no real elasticity need, VM, one kernel, 50-200 ms, 20-60 s, 200-500 MB, 110 pods per node, Legible failures, killed, kubelet on that node, not, hangs rather than exits.