How do you roll kernel updates across a 200-node fleet safely?
AdvancedProductionPatching, Automation & Golden Images
Answer
- Patch and reboot dev/staging, run the test suite and soak for a few days.
- Canary: a few production nodes in each AZ; watch error rates, latency, dmesg.
- Roll in batches (Ansible
serial: 10%,max_fail_percentage: 0): drain from LB orkubectl drain, patch, reboot, wait for health checks, re-enable. - Stop automatically on failure.
- Keep the previous kernel installed for GRUB fallback;
grub2-set-defaultorgrubby --set-defaultto roll back.
More on Patching, Automation & Golden Images
What does a good Linux patching strategy look like?BeginnerIn-place patching vs immutable image replacement: which do you prefer?IntermediateHow do you know whether a server needs a reboot after patching?BeginnerHow do you configure automatic security updates?BeginnerWhat is kernel live patching?IntermediateWhat is a golden image?Beginner