More Info:
The kubelet service file should be owned by root:root so that only privileged users can alter it. Incorrect ownership could allow unauthorized modification of the kubelet startup.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every worker node, verify the current ownership of the kubelet service file:
-
On every worker node, set the ownership of the kubelet service file to root:root:
-
On every worker node, confirm the change took effect (verification):
Using kubectl
Using kubectl
kubectl cannot modify host-level systemd unit files such as
/etc/systemd/system/kubelet.service.d/10-kubeadm.conf on worker nodes; the ownership must be corrected directly on each node’s OS. Please follow the guidance in the Manual Steps section on every worker node to fix the file ownership and then re-run the audit command to verify.Automation
Automation

