Member-only story
Kubernetes Certificate Renewal
For Kubernetes Clusters deployed by Kubespray
2 min readAug 27, 2024
There are two cases:
- Certificates are not expired
- Certificates are already expired
Here is how the Kubernetes certificates can be renewed.
When Certificates Are Still Valid:
Assuming that existing certificates are not expired, the steps to renew are straight-forward.
First, we connect a k8s master node and check the certificates.
Then, we renew all certificates.
Now, all the certificates are renewed. We can check again and verify the renewals.
Then, we reboot the master node.
We repeat these steps for each remaining master node. In short, we run these commands on each master node.
sudo kubeadm certs check-expiration # check
sudo kubeadm certs renew all
sudo kubeadm certs…