Fixing Certificate Expiration on k3s
Did you just log in to your k3s cluster and find a certificate has expired? The Problem When k3s/kubectl fails because a cert expired you might see an error like: sudo systemctl status k3s You get something like this: [x509: certificate has expired or is not yet valid Check certificate dates from your kubeconfig: kubectl config view --minify --raw \ | yq -r '.users[0].user."client-certificate-data"' \ | base64 -d \ | openssl x509 -noout -dates With the result as: ...