关于k8s类似于:The connection to the server localhost:8080 was refused - did you specify the right host or port?的toubleshooting
视频讲解:
K8s集群:The connection to the server localhost:8080 was refused
在minikube的环境下:可以通过运行minikube start --driver=docker的方式解决。
在Ubuntu配置的k8s集群中:第一次配好后重启可能会报The connection to the server MasterIP:6443 was refused. - did you specify the right host or port?
这个问题归根结底是kubectl配置的问题导致的。网上大带哦解决方案是重新执行下面代码片段。
我执行后没有用。
如果你配完集群,重启后发现在普通用户下无法执行kubectl,这可能是没有设置