首页 > 解决方案 > 谷歌云终端:认证后无法创建集群

问题描述

我正在尝试按照此处的官方谷歌指南部署一个小型测试示例应用程序。

以下是我尝试创建名为的集群后的输出消息和警告s

> vg@cloudshell:~ (shopify)$ gcloud container clusters create s
WARNING: Starting in 1.12, new clusters will have basic authentication disabled by default. Basic authentication can be enabled (or disabled) manually 
using the `--[no-]enable-basic-auth` flag.
WARNING: Starting in 1.12, new clusters will not have a client certificate issued. You can manually enable (or disable) the issuance of the client cert
ificate using the `--[no-]issue-client-certificate` flag.
WARNING: Currently VPC-native is not the default mode during cluster creation. In the future, this will become the default mode and can be disabled usi
ng `--no-enable-ip-alias` flag. Use `--[no-]enable-ip-alias` flag to suppress this warning.
This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on 
node autorepairs.
WARNING: Starting in Kubernetes v1.10, new clusters will no longer get compute-rw and storage-ro scopes added to what is specified in --scopes (though 
the latter will remain included in the default --scopes). To use these scopes, add them explicitly to --scopes. To use the new behavior, set container/
new_scopes_behavior property (gcloud config set container/new_scopes_behavior true).
ERROR: (gcloud.container.clusters.create) ResponseError: code=404, message=Not found: shopify.

我按照谷歌官方的故障排除指南,要求我重新授权进入项目shopify,这里是消息

Enter verification code: `omitted on Stackoverflow`
WARNING: `gcloud auth login` no longer writes application default credentials.
If you need to use ADC, see:
  gcloud auth application-default --help
You are now logged in as [vg@gmail.com]
Your current project is [shopify].  You can change this setting by running:
  $ gcloud config set project PROJECT_ID

现在,如果我尝试创建一个集群,我仍然会收到上面相同的错误消息 404。有任何想法吗?

标签: kubernetesgoogle-cloud-platformgoogle-kubernetes-engine

解决方案


推荐阅读