How to stop creating extra instances when using google managed vms?

冷暖自知 提交于 2019-11-28 09:25: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?


回答1:


You can deploy over the same version each time:

gcloud preview app deploy "...\app.yaml" --set-default --version=version-name

This will stop creating VMs.



来源:https://stackoverflow.com/questions/31484826/how-to-stop-creating-extra-instances-when-using-google-managed-vms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!