I have a kubeadm
installed kubernetes cluster. Recently it stopped working. kubelet
is running but seems stuck in initialization phases. I think the root cause is this recurring log in kube-apiserver
:
1 authentication.go:63] "Unable to authenticate the request" err="[x509: certificate has expired or is not yet valid: current time 2021-06-02T13:18:50Z is after 2021-05-29T15:48:22Z
So there is a certificate issue, also kubectl
is failing with unauthorized
. The thing is, kubeadm certs check-expiration
seems happy, and I even manually checked a few yaml config files (base64 decoded certificates, and run them through openssl to check the date). Nevertheless, I asked kubeadm to renew all certificates and rebooted everything, to no effect.
Any idea how I can identify which certificate exactly has expired ?