- sudo timedatectl set-ntp off
- sudo date --set="2021-11-30 09:03:00.000" (date before expiration)
- sudo docker exec -it rancher sh -c "rm /var/lib/rancher/k3s/server/tls/dynamic-cert.json"
- sudo docker exec -it rancher /bin/bash (running the kubectl inside the docker container for K3s)
- kubectl delete secret -n kube-system k3s-serving --insecure-skip-tls-verify (to bypass the expired certificate)
- sudo timedatectl set-ntp on
- sudo docker restart rancher