mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Pause between launching master and minions
Salt does not retry if master is not ready, apparently
This commit is contained in:
parent
eb1d9d0a46
commit
d8791acdba
@ -342,6 +342,11 @@ function kube-up {
|
||||
add-tag $master_id Name $MASTER_NAME
|
||||
add-tag $master_id Role $MASTER_TAG
|
||||
|
||||
echo "Waiting 1 minute for master to be ready"
|
||||
# TODO(justinsb): Actually poll for the master being ready
|
||||
# (we at least need the salt-master to be up before the minions come up)
|
||||
sleep 60
|
||||
|
||||
for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
|
||||
echo "Starting Minion (${MINION_NAMES[$i]})"
|
||||
(
|
||||
@ -400,7 +405,8 @@ function kube-up {
|
||||
|
||||
# Wait 3 minutes for cluster to come up. We hit it with a "highstate" after that to
|
||||
# make sure that everything is well configured.
|
||||
echo "Waiting for cluster to settle"
|
||||
# TODO: Can we poll here?
|
||||
echo "Waiting 3 minutes for cluster to settle"
|
||||
local i
|
||||
for (( i=0; i < 6*3; i++)); do
|
||||
printf "."
|
||||
|
Loading…
Reference in New Issue
Block a user