Make AWS node sizes dynamic in the number of nodes.

This commit is contained in:
Brendan Burns
2015-10-22 14:33:27 -07:00
parent d3862d453f
commit d32e713b77
4 changed files with 60 additions and 5 deletions

View File

@@ -91,6 +91,9 @@ export INSTANCE_PREFIX=k8s
...
```
The scripts will attempt to guess the correct size of the master and worker nodes based on `${NUM_MINIONS}`, in particular for clusters less than 50 nodes it will
use a `t2.micro` for clusters between 50 and 150 nodes it will use a `t2.small` and for clusters with greater than 150 nodes it will use a `t2.medium`.
It will also try to create or reuse a keypair called "kubernetes", and IAM profiles called "kubernetes-master" and "kubernetes-minion".
If these already exist, make sure you want them to be used here.