blob: cac18827f05c0321213f454246b34068d9e629cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
set -ex
kubectl label node worker1 extraRuntime=virtlet
kubectl label node worker2 extraRuntime=virtlet
kubectl create configmap -n kube-system virtlet-config --from-literal=download_protocol=http --from-literal=image_regexp_translation=1 --from-literal=disable_kvm=y
kubectl create configmap -n kube-system virtlet-image-translations --from-file /vagrant/examples/images.yaml
kubectl create -f /vagrant/examples/virtlet-ds.yaml
kubectl delete pod --all
kubectl create -f /vagrant/examples/cirros-vm.yaml
r="0"
while [ $r -ne "1" ]
do
r=$(kubectl get pods | grep Running | wc -l)
sleep 60
done
sleep 60
kubectl get pods -o json | grep podIP | cut -f4 -d'"' | xargs ping -c 4
echo 'login by user:cirros & password:gocubsgo'
|