2.1.13 Ensure that the --cadvisor-port argument is set to 0

Information

Disable cAdvisor.

Rationale:

cAdvisor provides potentially sensitive data and there's currently no way to block access to it using anything other than iptables. It does not require authentication/authorization to connect to the cAdvisor port. Hence, you should disable the port.

Solution

Edit the `/etc/kubernetes/kubelet` file on each node and set the `KUBELET_ARGS` parameter to `'--cadvisor-port=0'`: `KUBELET_ARGS='--cadvisor-port=0'`

Based on your system, restart the `kubelet` service. For example: `systemctl restart kubelet.service`

Impact:

cAdvisor will not be available directly. You need to work with `/metrics` endpoint on the API server.

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CSCv6|9.1

Plugin: Unix

Control ID: 1461eae7a19503f3cebfc8b311ae5ebac79bab8e90dc25155a8425cb7659c4e8