如何在使用Google管理的vms时停止创建额外的实例? [英] How to stop creating extra instances when using google managed vms?

查看:184
本文介绍了如何在使用Google管理的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

这将停止创建虚拟机。

这篇关于如何在使用Google管理的vms时停止创建额外的实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆