简体   繁体   English

是否可以重命名 GCP Cloud Run 服务?

[英]Is it possible to rename a GCP Cloud Run Service?

Is there a way to change a service via the Console or an API?有没有办法通过控制台或 API 更改服务? It seems this is not possible at least from the console.至少从控制台看来这是不可能的。

JC98 is right, you can't rename your service. JC98 是对的,你不能重命名你的服务。 BUT there is a new feature.但是有一个新功能。 In the list of the services, you can copy an existing one在服务列表中,您可以复制现有服务

在此处输入图像描述

Thus, select the the old service, copy it into a new one with the new name, and then delete the old one.于是,select 将旧服务复制到新名称的新服务中,然后删除旧服务。

Changing/adjusting the Service Name on Cloud Run is not supported.不支持在 Cloud Run 上更改/调整服务名称。 As explained on documentation :文档中所述:

Service names must be unique per region and project or per cluster.每个区域和项目或每个集群的服务名称必须是唯一的。 A service name cannot be changed later and is publicly visible when using Cloud Run (fully managed).服务名称以后无法更改,并且在使用 Cloud Run(完全托管)时公开可见。

You cannot change it via Cloud Console neither Cloud SDK.您不能通过 Cloud Console 或 Cloud SDK 更改它。

I don't know if i understand your question correctly but There are several ways to set a service's name in App Engine.我不知道我是否正确理解了你的问题,但有几种方法可以在 App Engine 中设置服务名称。 If you use Java with Maven for example, depends on your programming language you are using例如,如果您将 Java 与 Maven 一起使用,则取决于您使用的编程语言

Java with Maven for example (in the appengine-web.xml file) Java 和 Maven 例如(在 appengine-web.xml 文件中)

set <module>service_name</module> 

Python (app.yaml) Python (app.yaml)

set service: service_name 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以在 GCP 中使用带防火墙的完全托管服务(Cloud Run 或 App Engine)? - Is it possible to use a fully managed service (Cloud Run or App Engine) with firewall in GCP? 是否可以在 GCP 中通过云功能或云运行来触发云内存存储? - Is it possible to trigger cloud memorystore by cloud functions or cloud run in GCP? 是否可以从 GCP 负载均衡器重写对后端服务(例如 Cloud Run)的传入请求? - Is it possible to rewrite an incoming request to the backend service (e.g. Cloud Run) from a GCP load balancer? GCP 云运行限制 - GCP Cloud Run Limits Grafana 中的 GCP 云运行日志 - GCP Cloud Run Logs in Grafana GCP Cloud Run 503 错误:asp.net 网站服务不可用 - GCP Cloud Run 503 Error: Service unavailable for asp.net website 如何修复 gcp 云运行错误 505“服务不可用”? - How do I fix gcp cloud run error 505, "Service Unavailable"? GCP 云运行容器服务:[pool www] 无法写入套接字 '/run/php-fpm/www.sock' 的 ACL - GCP Cloud run container service : [pool www] failed to write the ACL of the socket '/run/php-fpm/www.sock' 为 GCP 认证用户访问 Cloud Run URL - Access Cloud Run URL for GCP authenticated users Cloud Run for Anthos 在 GCP 中的部署下不可用 - Cloud Run for Anthos is not available under deployment in GCP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM