More Info:
Ensure that the kubelet.conf file has permissions of 644 or more restrictiveRisk 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 kubeconfig file:
-
On every worker node, set restrictive permissions (644) on the kubelet kubeconfig file:
-
(Optional) On every worker node, set the file owner and group to root if needed:
-
On every worker node, verify the permissions are now correct:
Using kubectl
Using kubectl
kubectl cannot modify file permissions on worker node files such as
/etc/kubernetes/kubelet.conf; this must be fixed directly on each worker node’s host OS. Please follow the guidance in the Manual Steps section to update the file permissions and verify the fix.Automation
Automation
-
Manually on each worker node (SSH in, then):
-
From an admin machine with SSH access and a workers.txt file (one hostname/IP per line):

