- 重新生成证书
- 重新生成对应的配置文件
- 重启docker 和 kubelet
kubeadm alpha certs check-expiration
cp -r /etc/kubernetes/ /opt
kubeadm alpha certs renew all
rm -rf /etc/kubernetes/*.conf
kubeadm init phase kubeconfig all
cp /etc/kubernetes/admin.conf ~/.kube/config
systemctl restart kubelet
kubectl get pods -n defalt -o wide