More Info:
Ensure that the kubelet.conf file ownership is set to root:root.Risk Level
LowAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every worker node, check the current ownership of the kubelet kubeconfig file:
-
If the ownership is not
root:root, change it on that worker node: -
Confirm the ownership is now correct on that worker node:
The output must be:
- Repeat steps 1–3 on every worker node in the cluster.
Using kubectl
Using kubectl
kubectl cannot change file ownership on the worker node filesystem, so this finding cannot be remediated via the Kubernetes API. The fix must be applied directly on every worker node’s OS (host-level) by adjusting
/etc/kubernetes/kubelet.conf ownership; see the Manual Steps section for the exact commands.Automation
Automation

