summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/vagrant/kubeadm/deploy.sh1
-rwxr-xr-xsrc/vagrant/kubeadm/virtlet/virtlet.sh6
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'