我已按照安装步骤操作:https: //cloud.google.com/container-engine/docs/tutorials/guestbook#install_gcloud_and_kubectl
Google Container Engine群集已启动并正在运行,gcloud CLI已通过身份验证并可正常运行.
但是kubectl说:
"couldn't read version from server: Get http://local host:8080/api: dial tcp 127.0.0.1:8080: connection refused"
我想我需要用来kubectl config set-cluster在GCE上设置与集群的连接.
我在哪里可以找到GCE集群的Kubernetes master的地址?随着gcloud beta container clusters list我看到一些我的群集的主IP.我用过它kubectl config set-cluster.
现在它说:
"error: couldn't read version from server: Get http:// 104.197.49.119/api: dial tcp 104.197.49.119:80: i/o timeout"
我是否在正确的轨道上?
额外的陌生感:
gcloud container或者gcloud preview container不适合我.只要gcloud beta container
我的群集的MASTER_VERSION是0.21.4,而我的kubectl客户端的版本是GitVersion:"v0.20.2",即使新安装了gcloud.
我在Google Container Engine上运行了一些容器.有一天一切都很好,第二天我再也不能attach去我的容器了.或者exec,或任何其他docker命令.
我删除了pods并让新的pods实例化,没有帮助.然后我删除了节点并等待创建一个新节点并部署了pod,也没有帮助.
$ kubectl attach www-controller-dev-xxxxx
Error from server: No SSH tunnels currently open. Were the targets able to accept an ssh-key for user "gke-xxxxxxxxxxxxxxxxxxxxxxxx"?
Run Code Online (Sandbox Code Playgroud)
我还能尝试什么?
我删除群集并重新创建它后,问题可能已经开始,但我无法确定.之前做过这件事并且从来都不是问题.