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

Commit

Permalink
Fix getting public IP (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyAmanse authored and animeshsingh committed Aug 18, 2017
1 parent 2749501 commit db11e43
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit db11e43

Please sign in to comment.