This manual spherelet certificate renewal KB article is written to renew spherelet certificates when the above certmgr script fails to renew them.
If certmgr fails to properly renew spherelet certificates, utilize the script attached to this KB to renew the expired spherelet certificates.
In the below example screenshot, one of the ESXi host's MOID is host-1010
rotate_spherelet_certs.sh
chmod +x rotate_spherelet_certs.sh
./rotate_spherelet_certs.sh --cluster <cluster-MOID> --host <host-MOID>
kubectl get nodes
NAME STATUS ROLES AGE VERSION
<supervisor-dns-name-1> Ready control-plane,master ###d v#.##.#
<supervisor-dns-name-2> Ready control-plane,master ###d v#.##.#
<supervisor-dns-name-3> Ready control-plane,master ###d v#.##.#
<esxi-hostname-01> Ready agent ###d v#.##.#-sph
<esxi-hostname-02> Ready agent ###d v#.##.#-sph
<esxi-hostname-03> Ready agent ###d v#.##.#-sph
openssl x509 -text -in /etc/vmware/spherelet/client.crt | grep Not
openssl x509 -text -in /etc/vmware/spherelet/spherelet.crt | grep Not
/etc/init.d/spherelet status
YYYY-MM-DD HH:MM:SS,sss init.d/spherelet spherelet is running
YYYY-MM-DD HH:MM:SS,sss init.d/spherelet spherelet is running
cat /var/log/spherelet.log