我有我的 kubernetes 集群设置,我想从 worker/minion 节点检查节点,我们可以从 worker/minion 节点运行 kubectl 吗?
我正在关注kubernetes.io上的hellonode教程
http://kubernetes.io/docs/hellonode/
我在尝试执行"创建您的广告连播"部分时遇到错误.
当我运行此命令(用我创建的PROJECT_ID替换PROJECT_ID)时,我得到以下内容:
$ kubectl run hello-node --image=gcr.io/PROJECT_ID/hello-node:v1 --port=8080
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Run Code Online (Sandbox Code Playgroud)
我只是输入kubectl版本时遇到类似的错误:
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.2", GitCommit:"528f879e7d3790ea4287687ef0ab3f2a01cc2718", GitTreeState:"clean"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Run Code Online (Sandbox Code Playgroud)
我不知道该怎么做,因为除了遵循本教程的步骤之外我没有使用kubernetes的经验.
kubernetes ×2