https://rancher.com/ logo
Title
s

swift-student-44295

01/30/2023, 3:42 PM
Hi folks, I'm getting "error: You must be logged in to the server (Unauthorized)" and found that the client-certficate-data cert expired over the weekend. I understand that the cluster auto-renews certs when the service restarts, but I don't know how to update my client configuration. How do I do that?
c

creamy-pencil-82913

01/30/2023, 5:24 PM
if you’re using the admin kubeconfig at /etc/rancher/rke2/rke2.yaml then it should be regenerated at startup along with the rest of the certs. If you’ve copied that somewhere else, do so again.
s

swift-student-44295

01/30/2023, 6:00 PM
Thanks, I was thinking it wasn't being regenerated because base64 encoding comparisons of the beginning and end didn't change, but that's because they are the same string at the beginning and end.