-
Hi everyone! We are currently facing an issue related to certificate expiration. After approximately one year of stable operation, we have lost access to our Kubernetes cluster due to an expired certificate in the kubeconfig file. Based on our investigation, it appears that the control plane certificates have also expired. Attempting to use
We attempted to follow the standard renewal process using
We would greatly appreciate any guidance or documentation on the appropriate way to handle certificate renewal in this context. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
For those who faced the same issue and have doubts about how to manage this situation correctly :) The simple answerJust run:
After completion, you will get an updated kubeconfig with renewed certificate:
The long answerK3s automatically rotates certificates about 90 days before expiration (see https://docs.k3s.io/cli/certificate). The updated certificates are stored at:
And a new kubeconfig is generated at:
To manually retrieve and use it:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for posting the solution, the question itself had me worried a bit since I am currently in the process of moving from rancher to this 😄 |
Beta Was this translation helpful? Give feedback.
-
Hey this was realy helpful, but the second command in the simple answer should be
I think. Thanks! |
Beta Was this translation helpful? Give feedback.
For those who faced the same issue and have doubts about how to manage this situation correctly :)
The simple answer
Just run:
After completion, you will get an updated kubeconfig with renewed certificate:
The long answer
K3s automatically rotates certificates about 90 days before expiration (see https://docs.k3s.io/cli/certificate). The updated certificates are stored at:
And a new kubeconfig is generated at:
To manually retrieve and use it:
kubeconfig
with ren…