More Info:
The RotateKubeletServerCertificate feature gate should be true so the kubelet automatically rotates its serving certificates, preventing expiry-related failures.Risk Level
HighAddress
SecurityCompliance Standards
- CIS AKS
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
- On every worker node, open the kubelet systemd drop-in file for editing (create it if it does not exist yet):
- In that file, ensure there is an Environment line that includes the RotateKubeletServerCertificate feature gate. For example, add or update:
Environment="KUBELET_... lines already exist, keep them and only add or adjust the KUBELET_CERTIFICATE_ARGS line.- If the kubelet is also configured via
/etc/default/kubeletor/var/lib/kubelet/kubeadm-flags.env, check those files to ensure they do not override the feature gate. On every worker node:
RotateKubeletServerCertificate=false anywhere, edit the file and remove that part or change it to true.- Reload systemd configuration and restart kubelet on every worker node:
- Confirm kubelet is healthy on every worker node:
- Verify the kubelet process is running with
RotateKubeletServerCertificate=trueon every worker node:
Using kubectl
Using kubectl
kubectl cannot modify kubelet process flags or host-level configuration files, so this finding cannot be fixed via Kubernetes API changes. Configure
RotateKubeletServerCertificate in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf on every worker node as described, and follow the steps in the Manual Steps section.Automation
Automation

