RKE2 v1.30.0 +rke2r1, RKE2 agent cant renew certificates. #6299
-
Rke2's documentation explains how to renew the certificate for agents."To renew agent certificates, restart rke2-agent in agent nodes. Agent certificates are renewed every time the agent starts."
This is config yaml for my agent node
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I delete the certificate "rm -rf /var/lib/rancher/rke2/agent/client-rke2-controller.crt " and restart rke2-agent. Hovewer, certificate date is the same.
I stopped rke-2 agent and used rke2 certificate rotate command and it dosent work either.
For server, All certificates are rotated incluede client-kube-proxy.crt and client-rke2-controller.crt. However, Agent certificates can not be rotated |
Beta Was this translation helpful? Give feedback.
As the documentation says, you must rotate the server certificates first. Rotate the certificates on ALL of the servers, then rotate the agent certs. The updated kube-proxy and controller certs must be available on servers for agents to retrieve when they restart.