4.1.2 Ensure that the kubelet service file ownership is set to root:root

Information

Ensure that the kubelet service file ownership is set to root:root.

Rationale:

The kubelet service file controls various parameters that set the behavior of the kubelet service in the worker node. You should set its file ownership to maintain the integrity of the file. The file should be owned by root:root.

Solution

Run the below command (based on the file location on your system) on the each worker node. For example,

chown root:root /etc/systemd/system/kubelet.service.d/10-kubeadm.conf

Impact:

None

Default Value:

By default, kubelet service file ownership is set to root:root.

References:

https://kubernetes.io/docs/admin/kubelet/

https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#44-joining-your-nodes

https://kubernetes.io/docs/admin/kubeadm/#kubelet-drop-in

See Also

https://workbench.cisecurity.org/files/2662

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, CSCv6|5.1, CSCv7|5.2

Plugin: Unix

Control ID: c56ea8fe2af9fb957cbe6c9596e838361c5fdcc2307d6067a95d02300cd27baa