summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_kata/examples/nginx-app.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/vagrant/kubeadm_kata/examples/nginx-app.sh')
-rwxr-xr-xsrc/vagrant/kubeadm_kata/examples/nginx-app.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vagrant/kubeadm_kata/examples/nginx-app.sh b/src/vagrant/kubeadm_kata/examples/nginx-app.sh
index 96d776c..a66b7ca 100755
--- a/src/vagrant/kubeadm_kata/examples/nginx-app.sh
+++ b/src/vagrant/kubeadm_kata/examples/nginx-app.sh
@@ -20,6 +20,11 @@ kubectl get nodes
kubectl get services
kubectl get pods
kubectl get rc
-sleep 180
+r=0
+while [ "$r" -eq "0" ]
+do
+ sleep 30
+ r=$(kubectl get pods | grep Running | wc -l)
+done
svcip=$(kubectl get services nginx -o json | grep clusterIP | cut -f4 -d'"')
wget http://$svcip