Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

what should I do to restart the kubernetes controller panel after renew the certificate

Today, my kubernetes(v1.21) cluster certificate was expired(1 year), after I using this command to renew the certificate:

kubeadm certs renew all

the logs shows that the kube-apiserver\etcd should be restart:

Done renewing certificates. You must restart the kube-apiserver, kube-controller-manager, kube-scheduler and etcd, so that they can use the new certificates.

I have tried this way to restart:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

[root@k8smasterone ~]# systemctl restart kube-apiserver
Failed to restart kube-apiserver.service: Unit not found.

what should I do to restart all the component’s properly? I also tried to find the kubernetes pods that did not found pods with kubernetes with api server.

>Solution :

Failed to restart kube-apiserver.service: Unit not found.

Restart the kubelet on the master node, your kube-apiserver runs as static pod. Example: systemctl restart kubelet. When you do this on the master node, all core components (kube-*) will be restarted.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading