mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #21908 from justinsb/aws_spot_instance_timeout
Auto commit by PR queue bot
This commit is contained in:
commit
9b62123b37
@ -1154,7 +1154,12 @@ function start-minions() {
|
|||||||
function wait-minions {
|
function wait-minions {
|
||||||
# Wait for the minions to be running
|
# Wait for the minions to be running
|
||||||
# TODO(justinsb): This is really not needed any more
|
# TODO(justinsb): This is really not needed any more
|
||||||
attempt=0
|
local attempt=0
|
||||||
|
local max_attempts=30
|
||||||
|
# Spot instances are slower to launch
|
||||||
|
if [[ -n "${NODE_SPOT_PRICE:-}" ]]; then
|
||||||
|
max_attempts=90
|
||||||
|
fi
|
||||||
while true; do
|
while true; do
|
||||||
find-running-minions > $LOG
|
find-running-minions > $LOG
|
||||||
if [[ ${#NODE_IDS[@]} == ${NUM_NODES} ]]; then
|
if [[ ${#NODE_IDS[@]} == ${NUM_NODES} ]]; then
|
||||||
@ -1162,7 +1167,7 @@ function wait-minions {
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( attempt > 30 )); then
|
if (( attempt > max_attempts )); then
|
||||||
echo
|
echo
|
||||||
echo "Expected number of minions did not start in time"
|
echo "Expected number of minions did not start in time"
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user