Cluster lifecycle & upgrades

Upgrading Kubernetes under 20 teams' workloads: PDB audits, deprecated-API scanning (pluto/kubent), blue/green cluster swaps. The scariest recurring platform task.

About 27 min read3-question knowledge check

The mental model

Imagine you have to replace the engines on a passenger plane, and the plane is not allowed to land. There are 200 people aboard (your tenants' workloads), the manufacturer end-of-lifes the old engines on a regular schedule (Kubernetes ships about three minor releases a year, roughly every four months, and supports only the latest three), and if you do it wrong the cabin loses pressure mid-flight. You cannot just power everything down and swap parts. You replace one engine at a time, on a schedule, having first checked that every passenger is buckled in (has a PodDisruptionBudget), that no one is relying on a control that is being removed (a deprecated API), and with a second plane ready to take everyone if this one fails (a blue/green cluster).

Cluster lifecycle and upgrades are that engine swap. A Kubernetes cluster is not a thing you install once — it is a thing you upgrade forever, roughly three times a year to stay in support, under the live workloads of every team that depends on it. And unlike a single app upgrade, this one moves the ground everyone stands on: the API they call, the nodes they run on, the CNI that routes their packets. Get it wrong and you do not break one service — you break the substrate under all of them at once.

The idea that separates a platform engineer who has done this from one who has read about it: **an upgrade fails at the workloads, not at the control plane.** Bumping the API server version is the easy, well-tooled part. What breaks is a team's manifest that still calls a removed API, a PodDisruptionBudget that blocks every node drain, a single-replica service with no capacity to move, or a controller that assumed a field that changed. The scariest recurring platform task is scary precisely because the risk lives in code you do not own — so the whole discipline is about finding that risk before the upgrade, not during it.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision