Securing kubelet
kubelet is the node agent for Kubernetes. It manages the life cycle of objects within the Kubernetes cluster and ensures that the objects are in a healthy state on the node.
To secure kubelet, you should do the following:
- Disable anonymous authentication: If anonymous authentication is enabled, requests that are rejected by other authentication methods are treated as anonymous. Ensure that
--anonymous-auth=falseis set for each instance ofkubelet. - Set the authorization mode: The authorization mode for
kubeletis set using config files. A config file is specified using the--configparameter. Ensure that the authorization mode does not haveAlwaysAllowin the list. - Rotate kubelet certificates:
kubeletcertificates can be rotated using aRotateCertificatesconfiguration in thekubeletconfiguration file. This should be used in conjunction withRotateKubeletServerCertificateto auto-request rotation of server certificates. - Provide a Certificate...