mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Allow autoscaler min at 0 in GCE
This commit is contained in:
parent
85832892b1
commit
5e390eff1a
@ -1247,8 +1247,8 @@ function create-cluster-autoscaler-mig-config() {
|
|||||||
|
|
||||||
# Each MIG must have at least one node, so the min number of nodes
|
# Each MIG must have at least one node, so the min number of nodes
|
||||||
# must be greater or equal to the number of migs.
|
# must be greater or equal to the number of migs.
|
||||||
if [[ ${AUTOSCALER_MIN_NODES} -lt ${NUM_MIGS} ]]; then
|
if [[ ${AUTOSCALER_MIN_NODES} -lt 0 ]]; then
|
||||||
echo "AUTOSCALER_MIN_NODES must be greater or equal ${NUM_MIGS}"
|
echo "AUTOSCALER_MIN_NODES must be greater or equal 0"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user