当前位置:   article > 正文

kubeadm 安装完毕执行命令报The connection to the server localhost:8080 was refused_ku.eadm the connection was refused

ku.eadm the connection was refused

解决方案:

执行命令:

mkdir -p $HOME/.kube

sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

sudo chown $(id -u):$(id -g) $HOME/.kube/config

即可解决。

 

另外

Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")

 

也可以通过这个办法解决

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/202476
推荐阅读
相关标签
  

闽ICP备14008679号