Skip to main content

More Info:

When a kubelet config.yaml file is in use it should be owned by root:root so only privileged users can alter the kubelet configuration. Incorrect ownership risks unauthorized changes to node security.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS Kubernetes

Triage and Remediation

Remediation

Manual Steps

  1. On every worker node, confirm whether the kubelet config file exists and view its current ownership:
  2. On every worker node, set the ownership of the kubelet config file to root:root as required:
  3. On every worker node, verify that the ownership is now correctly set:
    The output must be:
kubectl cannot change file ownership on nodes, including /var/lib/kubelet/config.yaml; this must be fixed directly on every worker node’s host filesystem. See the Manual Steps section for the exact chown command and how to verify the fix.