Describe how to harden a cluster to the CIS Kubernetes benchmark in practice.
AdvancedProductionSecurity Hardening & Compliance
Answer
Run kube-bench for control-plane and node findings; on managed services some items belong to the provider (see the provider's CIS benchmark). Fix node config via AMI/user-data (kubelet flags, file permissions), API settings (audit, admission, RBAC), and workload settings via policy (PSA, no privileged, resource limits). Track as code and re-scan in CI and on a schedule.
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