diff options
author | Guo Ruijing <ruijing.guo@intel.com> | 2017-11-16 12:23:16 -0500 |
---|---|---|
committer | Guo Ruijing <ruijing.guo@intel.com> | 2017-11-20 18:43:47 -0500 |
commit | 57c01199d342c5051fef2bb94f463f21749089bb (patch) | |
tree | c2e6c28b3bd1fed53b92038bf1286e82f4661606 /src/vagrant/kubeadm_basic/examples/nginx-app.sh | |
parent | b2da960212571fc3e287eedcdc4c8c92fed9bf83 (diff) |
add examples for container4nfv
1. add example for kubeadm with weave
2. add example for kubeadm with multus
3. add example for kubeadm with ovsdpdk
4. add example for kubeadm with virtlet
Change-Id: I138e71e45f0aba8389dca0e1a826f4662572af29
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vagrant/kubeadm_basic/examples/nginx-app.sh')
-rwxr-xr-x | src/vagrant/kubeadm_basic/examples/nginx-app.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/vagrant/kubeadm_basic/examples/nginx-app.sh b/src/vagrant/kubeadm_basic/examples/nginx-app.sh index bfd0613..07b9c22 100755 --- a/src/vagrant/kubeadm_basic/examples/nginx-app.sh +++ b/src/vagrant/kubeadm_basic/examples/nginx-app.sh @@ -5,6 +5,16 @@ kubectl get nodes kubectl get services kubectl get pods kubectl get rc -sleep 120 + +r="0" +while [ $r -ne "2" ] +do + r=$(kubectl get pods | grep Running | wc -l) + sleep 20 +done + svcip=$(kubectl get services nginx -o json | grep clusterIP | cut -f4 -d'"') wget http://$svcip +kubectl delete rc --all +kubectl delete services --all +kubectl delete pod --all |