summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_kata/examples/nginx-app.sh
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2018-05-30 19:03:03 +0800
committerGuo Ruijing <ruijing.guo@intel.com>2018-05-31 17:43:01 +0800
commit6b40a7d85df324b8556c9e4f2916e444dc0ca0a6 (patch)
tree830bf7c53a7c902ec230dafe7d1f900ed05d210b /src/vagrant/kubeadm_kata/examples/nginx-app.sh
parentb1f11b54803266384cf0d9e14fcb7204dbcc79a7 (diff)
enable kata 1.0 + containerd 1.1
Change-Id: Idbeda8b36d067a7bd27a8ef19184c5bb5a6daa04 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
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