赞
踩
"Failed to run kubelet" err="failed to run Kubelet: unable to load bootstrap kubeconfig: stat /etc/kubernetes/bootstrap-kubelet.conf: no such file or directory"
[root@node01 kubernetes]# journalctl -xefu kubelet 查看
处理参考:k8s 集群出现问题:"unable to load bootstrap kubeconfig"_已解决_博问_博客园
- $ cd /etc/kubernetes/pki/
- $ mv {apiserver.crt,apiserver-etcd-client.key,apiserver-kubelet-client.crt,front-proxy-ca.crt,front-proxy-client.crt,front-proxy-client.key,front-proxy-ca.key,apiserver-kubelet-client.key,apiserver.key,apiserver-etcd-client.crt} ~/
- $ kubeadm init phase certs all
- $ cd /etc/kubernetes/
- $ mv {admin.conf,controller-manager.conf,kubelet.conf,scheduler.conf} ~/
- $ kubeadm init phase kubeconfig all
- $ reboot
- $ cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。