More Info:
When a kubelet config.yaml file is in use it should be owned by root:root so only privileged users can alter the kubelet configuration. Incorrect ownership risks unauthorized changes to node security.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every worker node, confirm whether the kubelet config file exists and view its current ownership:
-
On every worker node, set the ownership of the kubelet config file to root:root as required:
-
On every worker node, verify that the ownership is now correctly set:
The output must be:
Using kubectl
Using kubectl
kubectl cannot change file ownership on nodes, including
/var/lib/kubelet/config.yaml; this must be fixed directly on every worker node’s host filesystem. See the Manual Steps section for the exact chown command and how to verify the fix.Automation
Automation

