SV-254559r1188303_rule
V-254559
SRG-APP-000033-CTR-000095
CNTR-R2-000130
CAT I
10
Edit the RKE2 configuration file on all RKE2 hosts, located at /etc/rancher/rke2/config.yaml, to contain the following: kubelet-arg: --read-only-port=0
If configuration files are updated on a host, restart the RKE2 service using the command "systemctl restart rke2-server" for server hosts and "systemctl restart rke2-agent" for agent hosts.
Ensure read-only-port is set so anonymous requests will be rejected.
Run the following command on each node:
/bin/ps -ef | grep kubelet | grep -v grep
If --read-only-port is not set to "0" or is not configured, this is a finding.
V-254559
False
CNTR-R2-000130
Ensure read-only-port is set so anonymous requests will be rejected.
Run the following command on each node:
/bin/ps -ef | grep kubelet | grep -v grep
If --read-only-port is not set to "0" or is not configured, this is a finding.
M
5486