mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 07:39:22 +00:00
creating instance groups in parallel
This commit is contained in:
parent
b95fca093d
commit
8dc0be6b9e
@ -2786,6 +2786,8 @@ function create-linux-nodes() {
|
|||||||
this_mig_size=$((${instances_left} / (${NUM_MIGS}-${i}+1)))
|
this_mig_size=$((${instances_left} / (${NUM_MIGS}-${i}+1)))
|
||||||
instances_left=$((instances_left-${this_mig_size}))
|
instances_left=$((instances_left-${this_mig_size}))
|
||||||
|
|
||||||
|
# Run instance-groups creation in parallel.
|
||||||
|
{
|
||||||
gcloud compute instance-groups managed \
|
gcloud compute instance-groups managed \
|
||||||
create "${group_name}" \
|
create "${group_name}" \
|
||||||
--project "${PROJECT}" \
|
--project "${PROJECT}" \
|
||||||
@ -2797,7 +2799,8 @@ function create-linux-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
|
wait
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user