0
votes

I am new to google cloud. Sometime back i managed to deploy my code on cloud.

I just created 2 VM instances. I am facing following problem,

  1. Whenever i deploy new build using cloud sdk(gcloud preview app deploy app.yaml --set-default), it brings new machine. this is weird.
  2. Tried to delete VM instances in the console (https://cloud.google.com/compute/docs/instances/stopping-or-deleting-an-instance#delete_an_instance), seems like deleted for few minutes and then it comes back into console again and again.

Can anyone please help as to how to resolve this issue?.

2

2 Answers

1
votes

The older app versions in App Engine are still running. You can navigate to App Engine > Versions and delete unused versions.

If you only delete the VM, App Engine will respawn it.

1
votes

Since you have not used version flag (--version VERSION) with your gcloud command, it deploys new version of the application and will consequently spin up new VM instances.

To fix this, take a look at my answer at this link.