Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Commit db11e43

Browse files
AnthonyAmanseanimeshsingh
authored andcommitted
Fix getting public IP (#22)
1 parent 2749501 commit db11e43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ kubectl delete --ignore-not-found=true -f local-volume.yaml
4141
}
4242

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

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

0 commit comments

Comments
 (0)