I have created a Google Cloud Cluster with 3 nodes. I'm not able to stop the vm instances at all? They just come back online. I've also tried to ssh in and sudo poweroff and still nothing. The vm instances will not turn off, which is a bit frustrating as they charge hourly as the instances are online. Any help will be greatly appreciated, thank you.
To add onto Igor's great answer, if you'd like to change the size of your cluster without fully deleting it, you can run gcloud container clusters resize NAME --size SIZE
to change your cluster to have SIZE nodes in it.
Yes, Cloud Cluster will keep your cluster alive. Until you delete cluster.
To delete cluster use following command:
gcloud container clusters delete my-cluster-id
Where my-cluster-id
is your cluster. To get id use gcloud container clusters list
.
See other cluster commands here: https://cloud.google.com/sdk/gcloud/reference/container/clusters/ (hint, you can resize it also, add/remove nodes, etc)