简体   繁体   中英

Is there a way to auto-modify a GCP instance? (with Ansible)

I'm wondering if there is a way to auto-modify a GCP instance (RAM, disks, number of vCPUs) without creating a new Virtual Machine. For example, auto-adding 2 GB of RAM in a machine that has reached 90% of its memory capacity, or adding storage on an existing disk that is nearly full...

I have seen that Ansible has features to create new GCP instances and disks, but nothing about managing RAM or vCPUs on a Virtual Machine.

Do you guys have any suggestions about how I could proceed?

Thanks!

You just have to stop the instance and then you can add RAM/disks/etc. There is no need to create a new VM for that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM