ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Network 'default' does not exist

耗尽温柔 提交于 2019-12-20 06:24:44

问题


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?


回答1:


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

You can find more details about it here.



来源:https://stackoverflow.com/questions/54342320/error-gcloud-app-deploy-invalid-argument-network-default-does-not-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!