A GKE Cluster's Kubelet should rotate server certificates automatically

Description

Server certificates should be rotated. This ensures there is no downtime due to expired certificates.

Remediation

Choose a remediation method from below. For both steps, a restart of the Kubelet service is required.

Kubelet config file

  1. Add the json below to the feature gates section of this file: /etc/kubernetes/kubelet/kubelet-config.json
"RotateKubeletServerCertificate": true

Executable arguments

--rotate-kubelet-server-certificate=true