mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #71726 from mbrannock/loop-pr
Create managed instance groups for nodes in parallel
This commit is contained in:
commit
de6f5ab268
@ -2342,7 +2342,6 @@ function create-nodes() {
|
|||||||
|
|
||||||
local instances_left=${nodes}
|
local instances_left=${nodes}
|
||||||
|
|
||||||
#TODO: parallelize this loop to speed up the process
|
|
||||||
for ((i=1; i<=${NUM_MIGS}; i++)); do
|
for ((i=1; i<=${NUM_MIGS}; i++)); do
|
||||||
local group_name="${NODE_INSTANCE_PREFIX}-group-$i"
|
local group_name="${NODE_INSTANCE_PREFIX}-group-$i"
|
||||||
if [[ $i == ${NUM_MIGS} ]]; then
|
if [[ $i == ${NUM_MIGS} ]]; then
|
||||||
@ -2365,8 +2364,9 @@ function create-nodes() {
|
|||||||
"${group_name}" \
|
"${group_name}" \
|
||||||
--zone "${ZONE}" \
|
--zone "${ZONE}" \
|
||||||
--project "${PROJECT}" \
|
--project "${PROJECT}" \
|
||||||
--timeout "${MIG_WAIT_UNTIL_STABLE_TIMEOUT}" || true;
|
--timeout "${MIG_WAIT_UNTIL_STABLE_TIMEOUT}" || true &
|
||||||
done
|
done
|
||||||
|
wait
|
||||||
}
|
}
|
||||||
|
|
||||||
# Assumes:
|
# Assumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user