错误:(gcloud.app.deploy)INVALID_ARGUMENT:网络“默认"不存在 [英] ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Network 'default' does not exist

查看:68
本文介绍了错误:(gcloud.app.deploy)INVALID_ARGUMENT:网络“默认"不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用遵循此文档的端点: https ://cloud.google.com/endpoints/docs/openapi/get-started-app-engine 在部署API后端"步骤中, 当我尝试运行"gcloud应用程序部署目标/appengine-staging"时,遇到以下问题:错误:(gcloud.app.deploy)INVALID_ARGUMENT:网络默认"不存在 步骤有什么问题?在哪里可以管理网络?

I try to use the endpoints follow this document: https://cloud.google.com/endpoints/docs/openapi/get-started-app-engine On the step 'Deploying the API backend', when I try to run 'gcloud app deploy target/appengine-staging',met this issue: ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Network 'default' does not exist What's the wrong on the step? Where can I manage the network?

推荐答案

如果没有另外指定,则部署将尝试在项目中使用默认"网络.您以前可能已经删除了该网络.您可以在项目上重新创建默认网络,也可以在app.yaml文件中设置其他网络,如下所示:

If you don't specify otherwise, the deployment tries to use the "default" network in your project. You may have deleted that network previously. You can either recreate the default network on your project or set a different network in your app.yaml file like so:

network:
  instance_tag: TAG_NAME
  name: NETWORK_NAME
  subnetwork_name: SUBNETWORK_NAME

您可以在此处.

这篇关于错误:(gcloud.app.deploy)INVALID_ARGUMENT:网络“默认"不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆