|
|
@ -15,18 +15,20 @@ if [[ -n "$K3S_IMAGE_TAG" ]]; then |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
info "Creating cluster multiserver $EXTRA_TITLE ..." |
|
|
|
info "Creating cluster multiserver $EXTRA_TITLE ..." |
|
|
|
$EXE cluster create "multiserver" --servers 3 --api-port 6443 --wait --timeout 360s $EXTRA_FLAG || failed "could not create cluster multiserver" |
|
|
|
$EXE cluster create "multiserver" --servers 3 --api-port 6443 --wait --timeout 360s $EXTRA_FLAG || failed "could not create cluster multiserver $EXTRA_TITLE" |
|
|
|
info "Checking that we have access to the cluster..." |
|
|
|
info "Checking that we have access to the cluster..." |
|
|
|
check_clusters "multiserver" || failed "error checking cluster" |
|
|
|
check_clusters "multiserver" || failed "error checking cluster $EXTRA_TITLE" |
|
|
|
|
|
|
|
|
|
|
|
info "Sleeping for 5 seconds to give the cluster enough time to get ready..." |
|
|
|
info "Sleeping for 5 seconds to give the cluster enough time to get ready..." |
|
|
|
sleep 5 |
|
|
|
sleep 5 |
|
|
|
|
|
|
|
|
|
|
|
info "Checking that we have 3 server nodes online..." |
|
|
|
info "Checking that we have 3 server nodes online..." |
|
|
|
check_multi_node "multiserver" 3 || failed "failed to verify number of nodes" |
|
|
|
check_multi_node "multiserver" 3 || failed "failed to verify number of nodes $EXTRA_TITLE" |
|
|
|
|
|
|
|
|
|
|
|
info "Deleting cluster multiserver..." |
|
|
|
info "Deleting cluster multiserver..." |
|
|
|
$EXE cluster delete "multiserver" || failed "could not delete the cluster multiserver" |
|
|
|
$EXE cluster delete "multiserver" || failed "could not delete the cluster multiserver $EXTRA_TITLE" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
passed "GOOD: multiserver cluster test successful $EXTRA_TITLE" |
|
|
|
|
|
|
|
|
|
|
|
exit 0 |
|
|
|
exit 0 |
|
|
|
|
|
|
|
|
|
|
|