每当运行云运行服务 云外壳:
gcloud run deploy myapp --image gcr.io/myproject-1831713/myapp
我总是被要求输入云运行区域,如下所示:
请指定一个区域:
[1] Asia-East1
[2] Asia-East2
[3]亚洲 - 东北1
[4]亚洲 - 东北2
[5]亚洲 - 东北3
[6]亚洲 - 南1
[7]亚洲 - 南2
[8]亚洲 - 东南1
[9]亚洲 - 东南2
[10]澳大利亚 - 东南1
[11]澳大利亚 - 东南2
[12]欧洲 - 中心2
[13]欧洲 - 北1
[14]欧洲 - 西1
[15]欧洲 - 西2
[16]欧洲 - 西3
[17]欧洲 - 西4
[18]欧洲 - 欧洲6
[19] Northamerica-Northeast1
[20] Northamerica-Northeast2
[21] Southamerica-East1
[22] Southamerica-West1
[23] us-Central1
[24] us-east1
[25] us-east4
[26] us-west1
[27] us-west2
[28] us-west3
[29] us-west4
[30]取消
请输入您的数字选择:
这样我就不要求输入云行驶区域每当运行 on cloud> cloud shell ,是否可以设置默认的云运行区域?如果可能,我该怎么做?
Whenever running a Cloud Run service on Cloud Shell:
gcloud run deploy myapp --image gcr.io/myproject-1831713/myapp
I'm always asked to input a Cloud Run region as shown below:
Please specify a region:
[1] asia-east1
[2] asia-east2
[3] asia-northeast1
[4] asia-northeast2
[5] asia-northeast3
[6] asia-south1
[7] asia-south2
[8] asia-southeast1
[9] asia-southeast2
[10] australia-southeast1
[11] australia-southeast2
[12] europe-central2
[13] europe-north1
[14] europe-west1
[15] europe-west2
[16] europe-west3
[17] europe-west4
[18] europe-west6
[19] northamerica-northeast1
[20] northamerica-northeast2
[21] southamerica-east1
[22] southamerica-west1
[23] us-central1
[24] us-east1
[25] us-east4
[26] us-west1
[27] us-west2
[28] us-west3
[29] us-west4
[30] cancel
Please enter your numeric choice:
So that I'm not asked to input a Cloud Run region whenever running a Cloud Run service on Cloud Shell, is it possible to set a default Cloud Run region? If possible, how can I do this?
发布评论
评论(1)
是的,可以在下面的以下命令中设置 ,以便您不要求输入云运行区域每当运行云运行服务 on cloud shell :
因此,例如,在下面运行此命令默认的云运行区域“ Asia-Northeast1” :
此外,您可以在下面的以下命令中检查您的默认云运行区域:
然后,这就是结果:
,您可以检查所有配置,包括您的默认云运行区域,其中以下命令:
然后,这就是结果:
此外,您可以在下面的命令中解开默认
您的默认云运行区域 :
那么,这就是结果:
Yes, it's possible to set a default Cloud Run region with this command below so that you're not asked to input a Cloud Run region whenever running a Cloud Run service on Cloud Shell:
So, for example, run this command below to set the default Cloud Run region "asia-northeast1" :
In addition, you can check your default Cloud Run region with this command below:
Then, this is the result:
And, you can check all configurations including your default Cloud Run region with this command below:
Then, this is the result:
In addition again, you can unset your default Cloud Run region with this command below:
Then, check your default Cloud Run region:
Then, this is the result: