【发布时间】:2020-01-16 18:57:59
【问题描述】:
Mac
我只是通过以下方式安装 kubectl:https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-macos
MacBook-Air:~ admin$ kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"darwin/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
可能是什么问题,有什么想法吗?
【问题讨论】:
-
如果您还没有 K8s 集群,请使用
kubectl version --client避免错误。
标签: kubernetes kubectl