Renew all certs and restart

Renew all control-plane certs. Note: restart the static pods (move the manifests out and back) so they load the new certs

kubeadm certs renew all && systemctl restart kubelet

tool
kubeadm5 commands
tags
kubeadmtlstroubleshooting

More kubeadm commands

  • kubeadm upgrade plan && kubeadm upgrade apply v1.30.2

    Show available versions, then upgrade the control plane. Upgrade kubelet and kubectl separately afterwards

  • kubeadm init --control-plane-endpoint "<host>:6443" --upload-certs --pod-network-cidr=10.244.0.0/16

    Bootstrap an HA cluster behind a load balancer VIP. --upload-certs shares the certificates with other control-plane nodes

  • kubeadm token create --print-join-command

    Create a new token and a ready join command for workers. Tokens expire in 24h by default

  • kubeadm certs check-expiration

    Show expiry dates of all control-plane certs and kubeconfigs. Better to find out now than when the apiserver quietly stops working

all 5 kubeadm commands