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=false
is set for each instance ofkubelet
. - Set the authorization mode: The authorization mode for
kubelet
is set using config files. A config file is specified using the--config
parameter. Ensure that the authorization mode does not haveAlwaysAllow
in the list. - Rotate kubelet certificates:
kubelet
certificates can be rotated using aRotateCertificates
configuration in thekubelet
configuration file. This should be used in conjunction withRotateKubeletServerCertificate
to auto-request rotation of server certificates. - Provide a Certificate...