Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
$ als gewone gebruiker# als root (of met sudo)
Vaardigheden in dit hoofdstuk
- Platform operations — P1132–P1141
Cluster upgrades: control plane, nodes, workloads
Upgrade the plane, then the nodes, then the pods.
Upgrading a cluster is three upgrades wearing one name: the control plane, the nodes and the workloads. Do them in that order, or spend the night debugging a symptom.
- Control Plane: etcd snapshot, API and addons, Version skew
- Nodes: Cordon, Drain, Kubelet and CRI
- Workloads: Disruption budget, Surge room, Rollback path
Full note: P1132 — Cluster upgrades: control plane, nodes, workloads
A maintenance window people trust
Every maintenance window is a promise about time, and most break at the end rather than the start.
- A promise about time: When it starts, what stops, and when it is over.
- Three messages: A week, a day, an hour. The same facts each time.
- Scope is what stays up: Name the journeys still working, not the services.
- Script, timestamp, abort: One command to stop, one number to trigger it.
Full note: P1133 — A maintenance window people trust
Five signs a freeze is hiding risk
Change freezes feel like risk management. Often they are risk deferral with better branding.
- The freeze has no end date, and nobody can name who lifts it.
- Security patches queue behind feature work and wait for the thaw.
- The backlog grows while the change failure rate stays flat.
- Teams ship anyway, quietly, through a console and a favour.
Full note: P1134 — Five signs a freeze is hiding risk
Draining a node without dropping requests
The request does not care about your drain.
Draining a node looks like one command. It is a traffic operation that happens to move pods.
- Make the pod leave first: Check the budget; Fail readiness early; Sleep in preStop.
- One node, one at a time: Cordon before drain; Give it a timeout; Watch evictions.
- Check from outside: Curl through the edge; Count 5xx per minute; Uncordon and record.
Full note: P1135 — Draining a node without dropping requests
Certificate rotation across a platform
Certificates do not fail gradually. They fail on a date, in a place nobody listed, usually on a Friday.
- An inventory, not a guess: Every name, use, owner and renewal path.
- An owner per certificate: A team, a renewal path and a last-rotated date.
- Overlap, then remove: Both certificates served until the last client moves.
- Drill before the date: Rotate one that did not need it, and time it.
Four numbers that describe your change
Four numbers describe how a platform handles change, and none of them is the number of releases.
- Lead time: commit to production, in hours, not in sprints.
- Change failure: the share of releases that need a rollback.
- Rollback time: decision to the old version serving traffic.
- Freeze days: days change is banned, and what waits behind them.
The change pipeline: propose, review, pilot, roll out
A change is a series of small promises.
Most change problems are not technical. They are a pipeline with missing gates.
- Propose: One page: what changes, why now, who is affected, how to undo.
- Review: A second pair of eyes on the blast radius, not on the formatting.
- Pilot: One tenant or one percent, with the same checks as production.
- Roll out: Widen in steps, watching the same numbers that passed the pilot.
Full note: P1138 — The change pipeline: propose, review, pilot, roll out
Runbook automation without surprises
Runbook automation usually fails for a human reason: the runbook was never good enough to automate.
- Run it by hand first: Twice, same result, before a line is automated.
- Limit, clock, log: Small blast radius, a timeout and a record.
- Design the half-finished state: What step four leaves behind, and how to resume.
- Review it like code: Repository, CI, and a tagged version to roll back to.
Full note: P1139 — Runbook automation without surprises
Five questions before automating
Automation removes the step where a person notices something is wrong. That is the whole benefit and the whole risk.
- Has a person run it by hand twice, with the same result?
- What does it change, and can you see that before it does?
- Who may run it, and who may stop it halfway through?
- What does the system look like when step four of seven fails?
Full note: P1140 — Five questions before automating
Platform operations commands
Know the command before the incident.
Platform operations is mostly reading state quickly and changing it slowly.
- Upgrades:
kubectl version -o yaml - Drain:
kubectl cordon node-3 - Certificates:
kubectl get certificate -A - Triage:
kubectl get events -A -w
Full note: P1141 — Platform operations commands