From eecc28839b7088f6bd6be9538db7ddc1986b369f Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Wed, 18 Oct 2017 19:59:55 -0400 Subject: seperate k8s basic installation and ovsdpdk installation Change-Id: I9ba3b52feebb7be6037d88f07f8c861ddbfe9bdf Signed-off-by: Guo Ruijing --- src/vagrant/kubeadm_basic/examples/nginx-app.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 src/vagrant/kubeadm_basic/examples/nginx-app.sh (limited to 'src/vagrant/kubeadm_basic/examples/nginx-app.sh') diff --git a/src/vagrant/kubeadm_basic/examples/nginx-app.sh b/src/vagrant/kubeadm_basic/examples/nginx-app.sh new file mode 100755 index 0000000..bfd0613 --- /dev/null +++ b/src/vagrant/kubeadm_basic/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 -- cgit 1.2.3-korg