Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ kubectl delete --ignore-not-found=true -f local-volume.yaml
}

function initial_setup() {
IP=$(kubectl get nodes | grep Ready | awk '{print $1}' | head -1)
IP=$(bx cs workers $CLUSTER_NAME | grep normal | awk '{print $2}' | head -1)
kubectl create -f local-volume.yaml
sleep 5s
sed -i s#PLACEHOLDER_IP#$IP#g gameon-configmap.yaml
Expand Down Expand Up @@ -94,7 +94,7 @@ done

echo "Pods for the platform services are now Running."
echo "Waiting for the amalgam8 controlplane to finish setup..."
IP=$(kubectl get po -l tier=controller -o jsonpath='{.items[0].status.hostIP}')
IP=$(bx cs workers $CLUSTER_NAME | grep normal | awk '{print $2}' | head -1)
TRIES=0
while true
do
Expand All @@ -111,7 +111,7 @@ code=$(curl -sw '%{http_code}' http://$IP:31200/health -o /dev/null)
TRIES=$((TRIES+1))
sleep 5s
done
IP=$(kubectl get po -l tier=registry -o jsonpath='{.items[0].status.hostIP}')
IP=$(bx cs workers $CLUSTER_NAME | grep normal | awk '{print $2}' | head -1)
TRIES=0
while true
do
Expand Down