我是靠谱客的博主 有魅力发夹,这篇文章主要介绍kubeadm 安装完毕执行命令报The connection to the server localhost:8080 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")
也可以通过这个办法解决
最后
以上就是有魅力发夹最近收集整理的关于kubeadm 安装完毕执行命令报The connection to the server localhost:8080 was refused的全部内容,更多相关kubeadm内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复