Interview Prep/Kubernetes/Security Hardening & Compliance

Why should nodes be treated as immutable?

BeginnerProductionSecurity Hardening & Compliance
Answer

Patching or SSH-ing into nodes causes drift and unrepeatable fixes. Instead build hardened AMIs (Bottlerocket or AL2023), roll nodes regularly (Karpenter expireAfter, node group refresh), disable SSH in favour of SSM Session Manager, and replace rather than repair. Reduced attack surface and a regular refresh keep CVEs short-lived.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security Hardening & Compliance