【问题标题】:how can I edit the instance suffix in an instances group?如何编辑实例组中的实例后缀?
【发布时间】:2018-08-15 23:01:14
【问题描述】:

我的实例组会自动为我的实例添加一个随机后缀。

我想更改 GCP 实例组中的实例名称或后缀。我更喜欢带编号的后缀。

有可能吗?

Screenshot of my Google Cloud in the Instances Group section

【问题讨论】:

  • 如果它解决了您的问题,请考虑接受/支持答案
  • Stackoverflow 不允许我以低于 15 的声誉为您的答案投票。对不起。

标签: google-cloud-platform cloud google-compute-engine google-cloud-sdk


【解决方案1】:

无法控制属于实例组的实例的后缀。正如您在 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 主题。

【讨论】:

    猜你喜欢
    • 2014-03-25
    • 1970-01-01
    • 2020-01-13
    • 2015-05-05
    • 1970-01-01
    • 2019-11-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多