mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #76498 from mm4tt/kubemark_fix
Fail start-kubemark.sh on master or hollow nodes set-up errors
This commit is contained in:
commit
bb845a715a
@ -494,6 +494,7 @@ function start-master {
|
|||||||
start-master-components
|
start-master-components
|
||||||
}
|
}
|
||||||
start-master &
|
start-master &
|
||||||
|
start_master_pid=$!
|
||||||
|
|
||||||
# Setup for hollow-nodes.
|
# Setup for hollow-nodes.
|
||||||
function start-hollow-nodes {
|
function start-hollow-nodes {
|
||||||
@ -503,8 +504,11 @@ function start-hollow-nodes {
|
|||||||
wait-for-hollow-nodes-to-run-or-timeout
|
wait-for-hollow-nodes-to-run-or-timeout
|
||||||
}
|
}
|
||||||
start-hollow-nodes &
|
start-hollow-nodes &
|
||||||
|
start_hollow_nodes_pid=$!
|
||||||
|
|
||||||
|
wait $start_master_pid || { echo "Failed to start kubemark master" ; exit 1 ; }
|
||||||
|
wait $start_hollow_nodes_pid ||{ echo "Failed to start hollow nodes" ; exit 1 ; }
|
||||||
|
|
||||||
wait
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Master IP: ${MASTER_IP}"
|
echo "Master IP: ${MASTER_IP}"
|
||||||
echo "Password to kubemark master: ${KUBE_PASSWORD}"
|
echo "Password to kubemark master: ${KUBE_PASSWORD}"
|
||||||
|
Loading…
Reference in New Issue
Block a user