[英]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.