美文网首页
ubuntu搭建k8s:The connection to th

ubuntu搭建k8s:The connection to th

作者: 王晨玮Mark | 来源:发表于2021-01-18 12:24 被阅读0次

问题:
The connection to the server localhost:8080 was refused - did you specify the right host or port?

切换到root用户(如果密码不对自行百度)

su root

再执行一遍

sudo kubeadm reset
sudo kubeadm init
export KUBECONFIG=/etc/kubernetes/admin.conf
sudo kubectl apply -f canal.yaml
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

网络配置随意

sudo kubectl apply -f canal.yaml

相关文章

网友评论

      本文标题:ubuntu搭建k8s:The connection to th

      本文链接:https://www.haomeiwen.com/subject/uyztzktx.html