Rule version CNTR-K8-003240 · STIG v2 · 2026-02-12
The Kubernetes kubelet agent registers nodes with the API Server and performs health checks to containers within pods. If this file can be modified, the information system would be unaware of pod or container degradation.
Review the Kubernetes Kubeadm kubelet conf file by using the command:
stat -c %U:%G /var/lib/kubelet/config.yaml| grep -v root:root
If the command returns any non root:root file permissions, this is a finding.
Change the ownership of the kubelet config to "root: root" by executing the command:
chown root:root /var/lib/kubelet/config.yaml