How to stop creating extra instances when using go

2019-01-28 15:24发布

问题:

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.