Swich to new gcloud API for GCE MIGs

This commit is contained in:
Wojciech Tyczynski
2015-07-22 13:40:22 +02:00
parent 6129d3d4eb
commit 2d95cd454c
5 changed files with 29 additions and 60 deletions

View File

@@ -195,7 +195,7 @@ its own. (In the future, we plan to limit authorization to only allow a kubelet
If your cluster runs short on resources you can easily add more machines to it if your cluster is running in Node self-registration mode. If you're using GCE or GKE it's done by resizing Instance Group managing your Nodes. It can be accomplished by modifying number of instances on `Compute > Compute Engine > Instance groups > your group > Edit group` [Google Cloud Console page](https://console.developers.google.com) or using gcloud CLI:
```
gcloud preview managed-instance-groups --zone compute-zone resize my-cluster-minon-group --new-size 42
gcloud compute instance-groups managed --zone compute-zone resize my-cluster-minon-group --new-size 42
```
Instance Group will take care of putting appropriate image on new machines and start them, while Kubelet will register its Node with API server to make it available for scheduling. If you scale the instance group down, system will randomly choose Nodes to kill.