Reputation: 2264
I recently changed the version of the app when deployment and everytime i execute gcloud compute instances list it will list out the old version, i tried manually deleting from the console and it works but after few minutes it will go back. I tried gcloud delete too gcloud compute instances delete instance --delete-disks all
Stopping doesnt help to, as it is a running instance would it charge me on its up time? How do i completely remove it (Did tried removing appengine version too but it keeps coming back)?
Upvotes: 2
Views: 301
Reputation: 166
I've been having a lot of trouble with deploying (with versions) and deleting instances on Google Compute Engine's managed VMs. Here's a solution I found for deleting the default GCE managed VM:
gcloud components update
in the Google Cloud SDK Shell.vm:true
, resources:
section, and manual scaling:
section.<default-version-number>
. Mine looks like 20150722t1245032
with the words (default)
indicating the default version.gcloud preview app deploy "...\app.yaml" --set-default --version=<default-version-number>
.I was also taught how to stop deploying additional instances:
gcloud preview app deploy "...\app.yaml" --set-default --version=<version-number>
. @ZacharyNewman was able to help me with this problem.And finally, this is how to delete the additional versions of an instance:
Hope this helps!
Upvotes: 2