Skip to content

Instantly share code, notes, and snippets.

@intolerance
Last active October 4, 2022 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intolerance/953c06de7b9642356a2576dc6157f4c2 to your computer and use it in GitHub Desktop.
Save intolerance/953c06de7b9642356a2576dc6157f4c2 to your computer and use it in GitHub Desktop.

Renew Certificates on K8s

Perform certificate renew

sudo kubeadm alpha certs renew all
sudo cp /etc/kubernetes/admin.conf ~/.kube/config

Copy bottom certificate sections of admin.conf to kubelet.conf

sudo nano /etc/kubernetes/kubelet.conf

Restart kubelet svc

systemctl restart kubelet
journalctl -xeu kubelet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment