我的实例组会自动向我的实例添加随机后缀。
我想更改 GCP 实例组中的实例名称或后缀。我更喜欢一个编号后缀。
可以这样做吗?
Screenshot of my Google Cloud in the Instances Group section
最佳答案
无法控制属于实例组的实例的后缀。正如您可以在 documentation 中读到的那样即使使用带有可选标志的 SDK,您也可以更改实例的base-name
,但没有有关后缀的提示。
--base-instance-name=BASE_INSTANCE_NAME
The base name to use for the Compute Engine
instances that will be created with the managed instance group.
If not provided base instance name will be the prefix of instance group name.
此外,一旦创建了 Compute Engine 实例,就无法对其进行重命名。 在这里您可以找到UserVoice关于此功能的主题。
关于google-cloud-platform - 如何编辑实例组中的实例后缀?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49158758/