如何使用 gcloud run 创建修订 URL?

rod*_*ira 2 deployment gcloud google-cloud-run

我最近注意到 Google Cloud Run Web UI 中的一个测试版功能,它允许您创建修订 URL(标签)。超级好用的功能!

我的问题:如何为修订版创建标签,以便我可以使用gcloud? 我还没有在文档中看到任何关于它的内容(可能是因为它是一个如此新鲜的功能)。

gui*_*ere 5

修订 URL 也被命名为“TAG”。使用 update 命令标记最新的修订版。

gcloud beta run services update --tag=test --platform=managed --region=us-central1  go111
Run Code Online (Sandbox Code Playgroud)

  • 首先删除标签 `gcloud beta run services update-traffic --remove-tags=test --platform=driven --region=us-central1 go111`,然后您将能够删除修订! (3认同)