From 7a5ffe11c53e77e16383e712aad823e333b61aff Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Fri, 10 May 2019 18:27:14 +0800 Subject: fix issue in virtlet and disable istio Change-Id: Ib75a486fceef9feb35f8fd6eaad78b97d8e44550 Signed-off-by: Guo Ruijing --- src/vagrant/kubeadm/deploy.sh | 1 - src/vagrant/kubeadm/virtlet/virtlet.sh | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/vagrant/kubeadm/deploy.sh b/src/vagrant/kubeadm/deploy.sh index 82b2483..eb61ad8 100755 --- a/src/vagrant/kubeadm/deploy.sh +++ b/src/vagrant/kubeadm/deploy.sh @@ -8,4 +8,3 @@ cd $DIR vagrant up vagrant ssh master -c "/vagrant/kata/nginx-app.sh" vagrant ssh master -c "/vagrant/virtlet/virtlet.sh" -vagrant ssh master -c "/vagrant/istio/istio.sh" diff --git a/src/vagrant/kubeadm/virtlet/virtlet.sh b/src/vagrant/kubeadm/virtlet/virtlet.sh index 505d7f0..4ed527e 100755 --- a/src/vagrant/kubeadm/virtlet/virtlet.sh +++ b/src/vagrant/kubeadm/virtlet/virtlet.sh @@ -13,9 +13,9 @@ kubectl create -f /vagrant/virtlet/cirros-vm.yaml r="0" while [ $r -ne "1" ] do - r=$(kubectl get pods | grep Running | wc -l) + r=$(kubectl get pods cirros-vm | grep Running | wc -l) sleep 60 done -sleep 60 -kubectl get pods -o json | grep podIP | cut -f4 -d'"' | xargs ping -c 4 +sleep 360 +kubectl get pods cirros-vm -o custom-columns=:.status.podIP | xargs ping -c 4 echo 'login by user:cirros & password:gocubsgo' -- cgit 1.2.3-korg