简体   繁体   English

Google Cloud:磁盘标签不是从实例模板或映像继承的

[英]Google Cloud: Disk labels aren't inheriting from instance templates or images

I have instance templates with labels attach and image related to the template has labels attach as well, once the instance group spin up instances my disk aren't inheriting the labels from template or images.我有带有标签附加的实例模板,与模板相关的图像也有标签附加,一旦实例组启动实例,我的磁盘就不会从模板或图像继承标签。

I would like to know is there way to label disk which created by instance templates.我想知道有没有办法标记由实例模板创建的磁盘。

It seems that there is no way to inherit the Label of a Disk.似乎没有办法继承磁盘的标签。 I tried to reproduce the behavior you mentioned but it is not possible at this moment.我试图重现您提到的行为,但目前不可能。

  1. I created an image (gave it a label) using a disk that already has labels.我使用已经有标签的磁盘创建了一个图像(给它一个标签)。
  2. Then created an instance template using the same image and gave it a different label this time.然后使用相同的图像创建了一个实例模板,这次给它一个不同的标签。
  3. I then created instance group using the instance template and a VM instance was created with label inherited from the template , but the disk created for this VM Instance didn't have any label.然后,我使用实例模板创建了实例组,并使用从模板继承的标签创建了一个 VM 实例,但为此 VM 实例创建的磁盘没有任何标签。

The inheritance only works at instance level.继承仅适用于实例级别。

I have found that there is already a ticket created for this Feature Request , where you can track the updates for this request and you can ask for more information about it if you need it.我发现已经为此功能请求创建了一个票证,您可以在其中跟踪此请求的更新,如果需要,您可以询问有关它的更多信息。

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

相关问题 Google云端:无法将磁盘添加到具有写许可权的实例模板 - Google Cloud: can't add disk to instance template with write permission 如何从谷歌云实例访问启动盘 - How can I access boot disk from google cloud instance 带有 Google Cloud 的 Terraform:google_cloud_instance 找不到 google_compute_disk - Terraform with Google Cloud: google_cloud_instance can’t find google_compute_disk 尝试创建Google Cloud实例时,我无法更改启动磁盘 - I can't change the boot disk when I try to create a Google Cloud Instance 我们可以使用Google Cloud中的导出图像来从Google Cloud之外的图像创建实例吗 - can we use exported images in google cloud to create a instance from that image outside google cloud 如何利用Google Cloud VM实例中的所有磁盘空间? - How to avail all of the disk space in Google Cloud VM Instance? 如何分离 Google Cloud TPU VM 实例中的磁盘? - How to detach a disk in a Google Cloud TPU VM instance? 使用Plesk减少Google云端实例上启动磁盘的大小 - Reducing the size of boot disk on google cloud instance with Plesk Google Cloud实例上的独立kubelet永久磁盘装载 - Standalone kubelet persistent disk mount on Google Cloud instance 如何查看 Google Cloud 上 VM 实例的磁盘使用情况? - How to see disk usage of a VM instance on Google Cloud?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM