Mil*_*o40 6 typescript gcloud gcloud-cli google-cloud-functions google-cloud-run
每当我尝试使用gcloud-cli.
这是我运行来部署我的函数的命令
\ngcloud functions deploy [cloud_funtion_name]\n--gen2 --region=us-central1\n--runtime=nodejs18\n--entry-point=[function_entry_point]\n--trigger-http\n--allow-unauthenticated\n--max-instances=83\nRun Code Online (Sandbox Code Playgroud)\n在无休止地卡在Cloud run service台阶上大约 10 分钟后,我收到此错误
Preparing function...done. \nX Deploying function... \n \xe2\x9c\x93 [Build] Logs are available at [logs_link] \n \xe2\x9c\x93 [Service] \n . [ArtifactRegistry] \n . [Healthcheck] \n . [Triggercheck] \nFailed. \nERROR: (gcloud.functions.deploy) OperationError: code=13, \nmessage=Could not create or update Cloud Run service [cloud_funtion_name].\nReconciling latest revision template. Resource readiness deadline exceeded.\n\nRun Code Online (Sandbox Code Playgroud)\n即使我删除并重新部署,也会发生这种情况。我检查了 StackOverFlow 和 Google Issue Tracker 上的几个线程,但似乎没有一个真正有帮助......
\n有人有线索吗?如果需要更多信息,我很乐意处理。
\n直到昨天下午,我都能够部署我的功能,没有任何形式的问题。\n但是一夜之间,就在昨天,我的部署开始失败,甚至更新也不再起作用。
\n我其实是一无所知。
\n小智 2
我认为在幕后 GCP 可能会在第一次部署时创建一个无服务 VPC,在随后的修订中这可能会变得混乱。
我使用 CLI 创建了一个新的无服务器 VPC 连接器,现在可以在我的函数中使用它,而无需无数次切换区域。
gcloud compute networks vpc-access connectors create [CONNECTOR_NAME] \
--network [VPC_NETWORK_NAME] \
--region [REGION] \
--range [IP_RANGE]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2584 次 |
| 最近记录: |