More Info:
The kubelet —rotate-server-certificates argument should be set to true so the kubelet automatically requests and rotates its serving certificates. Disabling this increases exposure to expired or compromised server certificates.Risk Level
HighAddress
SecurityCompliance Standards
- CIS OKE
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every worker node, open the kubelet systemd drop-in config for editing:
-
In the
ExecStart=line, ensure the kubelet is started with--rotate-server-certificates=true. Add it if missing, or changefalsetotrue, for example: -
If the kubelet also uses a config file (e.g.
/etc/kubernetes/kubelet-config.json), check it for a conflicting setting and remove or align it. For example, if present, update this key totrueor delete it so the flag above is authoritative:Ensure either this field is set true or absent: -
Reload systemd and restart kubelet on the same worker node:
-
Confirm kubelet is healthy on the worker node:
-
Verify the argument is now set to true on the worker node (repeat on all workers):
The output must include
--rotate-server-certificates=true.
Using kubectl
Using kubectl
kubectl cannot modify kubelet process flags or host-level config files such as /etc/systemd/system/kubelet.service.d/00-default.conf or /etc/kubernetes/kubelet-config.json on worker nodes. To enable --rotate-server-certificates=true, make the change directly on each worker node as described in the Manual Steps section.Automation
Automation

