How to permanently delete Google managed VMs

前端 未结 5 1826
梦如初夏
梦如初夏 2021-01-02 04:35

I am unable to permanently delete Google App Engine managed VMs I\'ve created. I\'ve deleted them multiple times both from the developer\'s console and by using the gcloud

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-02 05:24

    I wanted to update this post with some of my solutions to 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:

    • Make sure you have the up-to-date GCE components. Run gcloud components update in the Google Cloud SDK Shell.
    • In your app.yaml, remove the vm:true, resources: section, and manual scaling: section.
    • Navigate to Compute -> App Engine -> Versions and record the . Mine looks like 20150722t1245032 with the words (default) indicating the default version.
    • Deploy the application, set the default, and specify the default version. gcloud preview app deploy "...\app.yaml" --set-default --version=.
    • Navigate to Compute -> Compute Engine -> VM instances. Select the default instance and delete.

    I was also taught how to stop deploying additional instances:

    • The key is to specify the version number gcloud preview app deploy "...\app.yaml" --set-default --version=. @ZacharyNewman was able to help me with this problem.

    And finally, this is how to delete the additional versions of an instance:

    • Navigate to Compute -> App Engine -> Versions and delete the versions you don't want.
    • Navigate to Compute -> Compute Engine -> VM instances. Select the instances you don't want and delete.

    Hope this helps!

提交回复
热议问题