kubeconfig connect failed #375
Replies: 7 comments 1 reply
-
Hi, looks like you need to rotate the certificates, see https://docs.k3s.io/cli/certificate I thought that they had changed the validity to 10 years but according to that page it's still only 1 year. Try the commands in that page and let me know how it goes. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
What I am confused about is, did you ever upgrade k3s in that past year? If not that's the reason why you ended up with expired certificates. If you upgrade k3s every couple of months the certificate rotation is done automatically and you won't happen to be again in this kind of situation. I am converting this to a discussion since it's something related to k3s, not specific to my tool. |
Beta Was this translation helpful? Give feedback.
-
I have added an item on the kanban board to implement a command to more easily rotate the certificates directly with hetzner-k3s - see https://github.com/users/vitobotta/projects/4?pane=issue&itemId=69422380. It's gonna be unlikely I will add it to v2.0 since it's not a critical feature. |
Beta Was this translation helpful? Give feedback.
-
Hello Vito, I apologize for the late response. I took your recommendation regarding the k3s update to heart and performed it on both the test system and the production system to gain experience and address the certificate rotation issue. |
Beta Was this translation helpful? Give feedback.
-
rc1 of v2 is now available and it includes many fixes and improvements. Can you help with testing? See #385 for details. Thanks |
Beta Was this translation helpful? Give feedback.
-
Sorry do bump into this discussion, but I am currently facing a Now master[1-3] are alerting me with Also, the actual client-certificate in When getting the api metrics myself: kubectl proxy --port=8080 &
curl -s http://localhost:8080/metrics | grep -i --color=auto 'apiserver_client_certificate_expiration_seconds_'
I am not so sure what to do with these values 🤔 https://kubernetes.io/docs/reference/instrumentation/metrics/
Since this also states
As far as I can see, there is no issue? Right? |
Beta Was this translation helpful? Give feedback.
-
Hi all,
our cluster ran for exactly one year and now I can no longer log in with the previously used kubeconfig
after searching around i run the following to figure out the expiration of my local kubeconfig cert
grep 'client-certificate-data' ./kubeconfig | awk '{print $2}' | base64 -d | openssl x509 -text
ok that might explain the root cause.
Can anyone please help and tell me how to fix this issue
thanks in advance..
Beta Was this translation helpful? Give feedback.
All reactions