Kubelet client certificate rotation is disabled

Manage kubelet client certificates so they are renewed before expiry.

Description

To renew the client certificate kubelet presents to the API server, set rotateCertificates: true in KubeletConfiguration or use --rotate-certificates=true if your version supports it. Kubelet serving certificates have a separate renewal process.

Potential impact

If the client certificate expires, the node can lose its authenticated connection to the API server.

Remediation

Check that kubelet can submit a certificate signing request (CSR) with a new key and that the request can be approved and signed. Confirm that kubelet uses the new certificate and check its expiry date. If you manage renewal manually, document the procedure and alert before expiry.

Examples

The image foo/bar is a placeholder. Apply the setting to the actual node’s kubelet. The first excerpt disables rotation with --rotate-certificates=false. The second enables renewal requests with --rotate-certificates.

Before

yaml
apiVersion: v1
kind: Pod
metadata:
  name: command-demo
spec:
  containers:
    - name: command-demo-container
      image: foo/bar
      command: ["kubelet"]
      args: ["--rotate-certificates=false"]

After

yaml
apiVersion: v1
kind: Pod
metadata:
  name: command-demo
spec:
  containers:
    - name: command-demo-container
      image: foo/bar
      command: ["kubelet"]
      args: ["--rotate-certificates"]

References