More Info:
Ensure that if the kubelet refers to a configuration file with the —config argument, that file has permissions of 644 or more restrictive.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every worker node, check the current permissions of the kubelet config file:
-
On every worker node, set the permissions to 644 as required:
-
(Optional, if you want to enforce ownership as well) On every worker node, ensure root owns the file:
-
On every worker node, verify the permissions are now compliant:
Using kubectl
Using kubectl
kubectl cannot modify file permissions or systemd configuration on cluster nodes, so this kubelet config file finding must be remediated directly on every worker node’s host OS. Use SSH and follow the guidance in the Manual Steps section to update
/var/lib/kubelet/config.yaml permissions.Automation
Automation

