当前位置:   article > 正文

/etc/kubernetes/bootstrap-kubelet.conf: no such file or directory“_stat /etc/kubernetes/bootstrap-kubelet.conf: no su

stat /etc/kubernetes/bootstrap-kubelet.conf: no such file or directory

"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"_已解决_博问_博客园

  1. $ cd /etc/kubernetes/pki/
  2. $ 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} ~/
  3. $ kubeadm init phase certs all
  4. $ cd /etc/kubernetes/
  5. $ mv {admin.conf,controller-manager.conf,kubelet.conf,scheduler.conf} ~/
  6. $ kubeadm init phase kubeconfig all
  7. $ reboot
  8. $ cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号