Skip to main content

More Info:

Ensure that the kubelet.conf file has permissions of 644 or more restrictive

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS Kubernetes

Triage and Remediation

Remediation

Manual Steps

  1. On every worker node, check the current permissions of the kubelet kubeconfig file:
  2. On every worker node, set restrictive permissions (644) on the kubelet kubeconfig file:
  3. (Optional) On every worker node, set the file owner and group to root if needed:
  4. On every worker node, verify the permissions are now correct:
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.
Usage examples:
  • 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):

Additional Reading: