Interview Prep/Kubernetes/Security Hardening & Compliance

How do you secure the kubelet and nodes?

IntermediateProductionSecurity Hardening & Compliance
Answer

Disable the anonymous kubelet auth (--anonymous-auth=false), use webhook authorization, keep the read-only port (10255) off, enable protectKernelDefaults, restrict the node IAM role, and use the NodeRestriction admission plugin so a node can only modify its own objects. CIS benchmarks (kube-bench) check these settings.

kube-bench run --targets node
All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security Hardening & Compliance