summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_multus/examples
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-11-22 13:06:39 -0500
committerGuo Ruijing <ruijing.guo@intel.com>2017-11-22 18:03:19 -0500
commitec94abf0ea9154af2f0dbce13e12df775b72bbac (patch)
treeb79ee46962ba50fe2cbad8efb5ef8f2cf709c3b1 /src/vagrant/kubeadm_multus/examples
parent57c01199d342c5051fef2bb94f463f21749089bb (diff)
build multus in ubuntu:16.04 docker during deployment
Change-Id: I557be21c59e28401c5ec20cd43d2baabc13bef3e Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vagrant/kubeadm_multus/examples')
-rwxr-xr-xsrc/vagrant/kubeadm_multus/examples/multus.sh15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/vagrant/kubeadm_multus/examples/multus.sh b/src/vagrant/kubeadm_multus/examples/multus.sh
index d4b9a88..92e95ab 100755
--- a/src/vagrant/kubeadm_multus/examples/multus.sh
+++ b/src/vagrant/kubeadm_multus/examples/multus.sh
@@ -17,23 +17,20 @@
set -ex
-#workaroud to fix dns pod issue
-times=0
-
-while [ $times -lt "3" ]
+while true
do
- kubectl get pods -n kube-system | grep kube-dns | grep -v Run | sed "s/ .*//" | \
- xargs -I {} kubectl delete pod -n kube-system {}
+ kubectl get pods -n kube-system | grep kube-cnimultus-ds | grep -v Run | wc -l | grep "^0$" && break
sleep 20
- times+=1
done
+kubectl delete rc --all
kubectl apply -f /vagrant/examples/busybox.yaml
r="0"
while [ $r -ne "2" ]
do
+ sleep 10
r=$(kubectl get pods | grep Running | wc -l)
- sleep 20
done
+
kubectl get pods --all-namespaces
-kubectl get pods | grep Run | sed "s/ .*//" | xargs -I {} kubectl exec -i {} ip a
+kubectl get pods | grep Run | sed "s/ .*//" | xargs -I {} kubectl exec -i {} ip a | grep mtu | wc -l | grep "^6$" || exit 1