diff options
author | 2017-10-15 11:21:22 -0700 | |
---|---|---|
committer | 2017-10-15 11:30:37 -0700 | |
commit | 4b7b5289169f5790a9cbdd65edf01cd3f372ee99 (patch) | |
tree | 0cfbfa6c73fa6425798d864d95505c41ffd1ecbf /src/vagrant/kubeadm_virtlet/examples/nginx-app.sh | |
parent | d9c7adad6ec6f5496f9b9ea2db07e01ffc8d4899 (diff) |
support virtlet in container4nfv
Change-Id: I913149ecf374a0a8f0d0bbb65aff52854401bbd6
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vagrant/kubeadm_virtlet/examples/nginx-app.sh')
-rwxr-xr-x | src/vagrant/kubeadm_virtlet/examples/nginx-app.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vagrant/kubeadm_virtlet/examples/nginx-app.sh b/src/vagrant/kubeadm_virtlet/examples/nginx-app.sh new file mode 100755 index 0000000..bfd0613 --- /dev/null +++ b/src/vagrant/kubeadm_virtlet/examples/nginx-app.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +kubectl create -f /vagrant/examples/nginx-app.yaml +kubectl get nodes +kubectl get services +kubectl get pods +kubectl get rc +sleep 120 +svcip=$(kubectl get services nginx -o json | grep clusterIP | cut -f4 -d'"') +wget http://$svcip |