kubectl error: The connection to the server localhost:8080 was refused

Posted 嗡嘛呢巴美吽舍

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kubectl error: The connection to the server localhost:8080 was refused相关的知识,希望对你有一定的参考价值。

did you run below commands after kubeadm init

To start using your cluster, you need to run (as a regular user):

sudo cp /etc/kubernetes/admin.conf $HOME/
sudo chown $(id -u):$(id -g) $HOME/admin.conf
export KUBECONFIG=$HOME/admin.conf

 

 

ref: https://github.com/kubernetes/kubernetes/issues/44665

以上是关于kubectl error: The connection to the server localhost:8080 was refused的主要内容,如果未能解决你的问题,请参考以下文章

k8s集群搭建报错:error:kubectl get csr No resources found.

k8s集群搭建报错:error:kubectl get csr No resources found.

k8s集群搭建报错:error:kubectl get csr No resources found.

kubectl describe pod Error from server (NotFound):pods not found

php中mysqli_error($conn)的用法

kubectl 服务无法启动