k8wiz
Kubernetes
Medium
Troubleshooting

After running kubeadm certs renew all, openssl still shows the old expiry date on the certificate served on port 6443. What is the most likely reason?

Select your answer:

Show answer and explanation

Answer: The kube-apiserver static pod was not restarted to load the new files

Explanation

kubeadm certs renew replaces the files on disk, but the running kube-apiserver keeps the old certificate in memory until it restarts. kubeadm ends with a reminder to restart kube-apiserver, kube-controller-manager, kube-scheduler and etcd. Because these are static pods, you restart them by moving their manifest out of /etc/kubernetes/manifests and back after the kubelet's fileCheckFrequency (20s by default).

Read more about Kubernetes