Created
August 29, 2023 12:07
-
-
Save eoinfennessy/3954dfc68fcc54ef524d00558dc85d98 to your computer and use it in GitHub Desktop.
Base setup for MGC install guide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
make local-setup-kind OCM_SINGLE=true | |
./bin/clusteradm init --bundle-version='0.11.0' --wait --context kind-mgc-control-plane | |
join=$(./bin/clusteradm get token --context kind-mgc-control-plane | grep -o 'join.*--cluster-name') | |
# Removed feature gate --feature-gates=RawFeedbackJsonString=true | |
./bin/clusteradm ${join} kind-mgc-control-plane --bundle-version='0.11.0' --force-internal-endpoint-lookup --context kind-mgc-control-plane | |
max_retry=18 | |
counter=0 | |
until ./bin/clusteradm accept --clusters kind-mgc-control-plane --context kind-mgc-control-plane; do | |
[[ counter -eq $max_retry ]] && echo "Failed!" && exit 1 | |
echo "Try #$counter failed. Retrying in 5 seconds..." | |
((++counter)) | |
sleep 5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment