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).
More medium Kubernetes questions
- Which component of the Kubernetes control plane is responsible for maintaining the desired state of the cluster?
- What is the difference between a Deployment and a StatefulSet?
- A pod is stuck in 'Pending' state. What is the most likely cause?
- Which component is responsible for maintaining network rules on nodes and enabling pod-to-pod communication?
- What is a DaemonSet used for in Kubernetes?
- What happens when a node in a Kubernetes cluster fails?