k8s搭建过程中的报错
root@master ~]# kubectl get podsThe connection to the server localhost:8080 was refused - did you specify the right host or port?解决方法Your Kubernetes control-plane has initialized successfully!To start
·
root@master ~]# kubectl get pods
The connection to the server localhost:8080 was refused - did you specify the right host or port?
解决方法
Your Kubernetes control-plane has initialized successfully!
To start using your cluster, you need to run the following as a regular user:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
You should now deploy a pod network to the cluster.
未能安装步骤执行上述3个步骤
依次执行即可:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
更多推荐
已为社区贡献1条内容
所有评论(0)