gcloud工具是否为各种选项提供配置文件

问题描述 投票:1回答:1

我需要在google云外壳中使用gcloud工具创建一个VM模板。每次在gcloud documentation中设置的选项太多了。我可以发布像gcloud compute instance-templates create <template name> --config-options-file=<config options file name>这样的东西吗?

google-cloud-platform cloud gcloud google-cloud-sdk
1个回答
2
投票

虽然我在官方documentation中找不到任何simailr到--config-file flag选项'gcloud compute instance-templates create',但是有一种通过gcloud创建实例模板资源的替代方法。

可以将gcloud命令与Deployment Manager结合使用。这可用于部署资源,包括实例模板。

有关更多信息,请查看here,其中包含信息和快速入门,以熟悉创建部署以通过配置文件部署资源。

您将找到支持的资源类型here的列表。如您所见,compute.beta.instanceTemplate有一个选项。

我还为您的请求创建了一个功能请求(对于配置文件选项),您可以跟踪here的进度。

© www.soinside.com 2019 - 2024. All rights reserved.