使用谷歌管理的虚拟机时如何停止创建额外的实例? [英] How to stop creating extra instances when using google managed vms?
本文介绍了使用谷歌管理的虚拟机时如何停止创建额外的实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每次我部署到 Google 的托管 VM 服务时,控制台都会自动创建一个重复的实例.我最多并行运行 15 个实例.我什至尝试使用命令:
Every time I deploy to Google's Managed VM service, the console automatically creates a duplicated instance. I am up to 15 instances running in parallel. I even tried using the command:
gcloud preview app deploy "...app.yaml" --set-default
我尝试进行了一些研究,看起来即使 删除这些重复的实例也可以是一种痛苦.关于如何停止这种重复的想法?
I tried doing some research and it looks like even deleting these duplicated instances can be a pain. Thoughts on how to stop this duplication?
推荐答案
您可以每次部署相同的版本:
You can deploy over the same version each time:
gcloud preview app deploy "...app.yaml" --set-default --version=version-name
这将停止创建虚拟机.
这篇关于使用谷歌管理的虚拟机时如何停止创建额外的实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文