Interview Prep/Kubernetes/Upgrades, etcd, disaster recovery and incidents

Certificates on a kubeadm cluster expire. What happens and how do you fix it?

AdvancedScenarioUpgrades, etcd, disaster recovery and incidents
Answer

Situation read → kubectl returns x509: certificate has expired.

What I'd do →

  1. kubeadm certs check-expiration
  2. kubeadm certs renew all
  3. Restart control plane static pods by moving manifests out and back
  4. Update admin kubeconfig
  5. Monitor expiry going forward

Why → kubeadm certs last one year unless renewed by upgrade.

Interview tip → Upgrading renews certs.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Upgrades, etcd, disaster recovery and incidents