Interview Prep/Kubernetes/Upgrades, Backup & Disaster Recovery

How do you do a safe node maintenance (patching) operation?

BeginnerProductionUpgrades, Backup & Disaster Recovery
Answer

Cordon the node, drain with --ignore-daemonsets --delete-emptydir-data --timeout=5m, patch/replace, uncordon, and watch rescheduling. Do it one node (or one batch limited by PDBs) at a time; automate by replacing nodes (immutable) instead of patching in place.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Upgrades, Backup & Disaster Recovery