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
More on Security Hardening & Compliance
What is the baseline security checklist for a production cluster?BeginnerWhy should containers run as non-root?BeginnerHow should human access to the cluster be managed?BeginnerWhat is the purpose of image scanning in CI and in the cluster?BeginnerWhy not store secrets in Git or in ConfigMaps?BeginnerWhat is a default-deny NetworkPolicy baseline?Beginner