SV-242434r961131_rule
V-242434
SRG-APP-000233-CTR-000585
CNTR-K8-001620
CAT I
10
On the Control Plane, run the command:
ps -ef | grep kubelet
Remove the "--protect-kernel-defaults" option if present.
Note the path to the Kubernetes Kubelet config file (identified by --config).
Edit the Kubernetes Kubelet config file:
Set "protectKernelDefaults" to "true".
Restart the kubelet service using the following command:
systemctl daemon-reload && systemctl restart kubelet
On the Control Plane, run the command:
ps -ef | grep kubelet
If the "--protect-kernel-defaults" option exists, this is a finding.
Note the path to the config file (identified by --config).
Run the command:
grep -i protectKernelDefaults <path_to_config_file>
If the setting "protectKernelDefaults" is not set or is set to false, this is a finding.
V-242434
False
CNTR-K8-001620
On the Control Plane, run the command:
ps -ef | grep kubelet
If the "--protect-kernel-defaults" option exists, this is a finding.
Note the path to the config file (identified by --config).
Run the command:
grep -i protectKernelDefaults <path_to_config_file>
If the setting "protectKernelDefaults" is not set or is set to false, this is a finding.
M
5376