mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
Minion->Node rename: NODE_SIZE
This commit is contained in:
@@ -16,17 +16,17 @@
|
||||
|
||||
ZONE=${KUBE_AWS_ZONE:-us-west-2a}
|
||||
MASTER_SIZE=${MASTER_SIZE:-}
|
||||
MINION_SIZE=${MINION_SIZE:-}
|
||||
NODE_SIZE=${NODE_SIZE:-}
|
||||
NUM_MINIONS=${NUM_MINIONS:-4}
|
||||
|
||||
# Dynamically set node sizes so that Heapster has enough space to run
|
||||
if [[ -z ${MINION_SIZE} ]]; then
|
||||
if [[ -z ${NODE_SIZE} ]]; then
|
||||
if (( ${NUM_MINIONS} < 50 )); then
|
||||
MINION_SIZE="t2.micro"
|
||||
NODE_SIZE="t2.micro"
|
||||
elif (( ${NUM_MINIONS} < 150 )); then
|
||||
MINION_SIZE="t2.small"
|
||||
NODE_SIZE="t2.small"
|
||||
else
|
||||
MINION_SIZE="t2.medium"
|
||||
NODE_SIZE="t2.medium"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user