mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #22846 from wojtek-t/fix_master_size
Auto commit by PR queue bot
This commit is contained in:
commit
1f98ba99f1
@ -31,12 +31,22 @@ if [[ -z ${NODE_SIZE} ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Dynamically set the master size by the number of nodes, these are guesses
|
# Dynamically set the master size by the number of nodes, these are guesses
|
||||||
# TODO: gather some data
|
|
||||||
if [[ -z ${MASTER_SIZE} ]]; then
|
if [[ -z ${MASTER_SIZE} ]]; then
|
||||||
if (( ${NUM_NODES} < 150 )); then
|
|
||||||
MASTER_SIZE="m3.medium"
|
MASTER_SIZE="m3.medium"
|
||||||
else
|
if [[ "${NUM_NODES}" -gt "5" ]]; then
|
||||||
MASTER_SIZE="m3.large"
|
suggested_master_size="m3.large"
|
||||||
|
fi
|
||||||
|
if [[ "${NUM_NODES}" -gt "10" ]]; then
|
||||||
|
suggested_master_size="m3.xlarge"
|
||||||
|
fi
|
||||||
|
if [[ "${NUM_NODES}" -gt "100" ]]; then
|
||||||
|
suggested_master_size="m3.2xlarge"
|
||||||
|
fi
|
||||||
|
if [[ "${NUM_NODES}" -gt "250" ]]; then
|
||||||
|
suggested_master_size="c4.4xlarge"
|
||||||
|
fi
|
||||||
|
if [[ "${NUM_NODES}" -gt "500" ]]; then
|
||||||
|
suggested_master_size="c4.8xlarge"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user