After successful run of '/root/certmgr certificates rotate
' to rotate Supervisor cluster's certificates, all Supervisor worker nodes (ie. ESXi hosts) become 'NotReady
'.
# k get node
NAME STATUS ROLES
4219d886d7ffc047f6a429be5babcdef Ready control-plane,master
esxihost0 NotReady agent
esxihost1 NotReady agent
esxihost2 NotReady agent
However, once certain amount of time has passed they all become 'Ready' without having any corrective actions taken.
vSphere with Tanzu
ESXi host's spherelet.log:
time="2025-01-10T09:11:02Z" level=error msg="Failed to retrieve node" error=Unauthorized
Supervisor kube-apiserver.log:
2025-01-10T09:11:02Z stderr F E0110 09:11:02.902161 1 authentication.go:63] "Unable to authenticate the request" err="[x509: certificate has expired or is not yet valid: current time 2025-01-10T09:11:02Z is before 2025-01-10T16:59:32Z, verifying certificate SN=7, SKID=, AKID= failed: x509: certificate has expired or is not yet valid: current time 2025-01-10T09:11:02Z is before 2025-01-10T16:59:32Z]"
The spherelet.log and kube-apiserver.log above from the cluster suggests the spherelet certificate generated on the host is not yet valid, it will become valid after 2025-01-10T16:59:32Z which makes sense why host node became 'Ready
' after 2025-01-10T16:59:32Z.