2.1.12 Ensure that the --tls-cert-file and --tls-private-key-file arguments are set as appropriate - tls-cert-file

Information

Setup TLS connection on the Kubelets.

Rationale:

Kubelet communication contains sensitive parameters that should remain encrypted in transit. Configure the Kubelets to serve only HTTPS traffic.

Solution

Follow the Kubernetes documentation and set up the TLS connection on the Kubelet. Then, edit the `/etc/kubernetes/kubelet` file on the master node and set the `KUBELET_ARGS` parameter to include `'--tls-cert-file='` and `'--tls-private-key-file='`: `KUBELET_ARGS='--tls-cert-file= --tls-private-key-file='`

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

Impact:

TLS and client certificate authentication must be configured for your Kubernetes cluster deployment.

See Also

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

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(2), CSCv6|14.2

Plugin: Unix

Control ID: 7095e789a96cf3096ebc06a20d0de4cbd5d1810c8b9e3bb3b2fe132c0da2cd6c