【发布时间】:2016-08-19 03:20:10
【问题描述】:
我正在关注 kubernetes.io 上的 hellonode 教程
http://kubernetes.io/docs/hellonode/
我在尝试执行“创建您的 pod”部分时遇到错误。
当我运行此命令时(将 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?
我在输入 kubectl version 时遇到了类似的错误:
$ 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?
我不知道该怎么做,因为除了按照本教程的步骤操作之外,我没有使用 Kubernetes 的经验。
【问题讨论】:
标签: kubernetes