我正在关注hellonode教程,部署到 Google Container Engine,但遇到以下错误:
kubectl run simple-gke-server --image=us.gcr.io/cloud-assets-henry/simple-gke-server:v1 --port=8888
Error from server: the server does not allow access to the requested resource (post replicationcontrollers)
即使我能够获得证书
gcloud container clusters get-credentials simplecluster
即使尝试获取版本信息,我也遇到了这个问题。
kubectl version
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"darwin/amd64"}
Couldn't read server version from server: the server does not allow access to the requested resource
我确实必须将我的 kubectl 更新到 1.4.0,它与我的集群版本相匹配。
我还使用配置由 gcloud 初始化,并且还进行了身份验证登录。
还有什么我可以做的吗?