[root@k8s-master01 ~]# kubeadm certs check-expiration --查看证书有效期
[root@k8s-master01 /etc/kubernetes/pki]# cp -rp /etc/kubernetes/pki/ /opt/pki.bak --备份证书
[root@k8s-master01 /etc/kubernetes/pki]# kubeadm certs renew all ---更新证书
[root@k8s-master01 ~]# systemctl restart kubelet.service ---重启服务
标签:pki,有效期,kubernetes,证书,master01,k8s,root,K8S From: https://www.cnblogs.com/xgg123/p/16937191.html