Interview Prep/Linux/Patching, Automation & Golden Images

How do you roll kernel updates across a 200-node fleet safely?

AdvancedProductionPatching, Automation & Golden Images
Answer
  1. Patch and reboot dev/staging, run the test suite and soak for a few days.
  2. Canary: a few production nodes in each AZ; watch error rates, latency, dmesg.
  3. Roll in batches (Ansible serial: 10%, max_fail_percentage: 0): drain from LB or kubectl drain, patch, reboot, wait for health checks, re-enable.
  4. Stop automatically on failure.
  5. Keep the previous kernel installed for GRUB fallback; grub2-set-default or grubby --set-default to roll back.
All Linux questions Roadmap: Linux

More on Patching, Automation & Golden Images