The steps described here are performed automatically by demo.sh script.
- Start kubeadm-dind-cluster with Kubernetes version 1.6 (you're not required to download it to your home directory):
$ wget -O ~/dind-cluster-v1.6.sh https://cdn.rawgit.com/Mirantis/kubeadm-dind-cluster/master/fixed/dind-cluster-v1.6.sh
$ chmod +x ~/dind-cluster-v1.6.sh
$ ~/dind-cluster-v1.6.sh up
$ export PATH="$HOME/.kubeadm-dind-cluster:$PATH"
The cluster script stores appropriate kubectl version in ~/.kubeadm-dind-cluster
.
2. Label a node to accept Virtlet pod:
kubectl label node kube-node-1 extraRuntime=virtlet
- Deploy Virtlet DaemonSet:
kubectl create -f virtlet-ds.yaml
- Wait for Virtlet pod to activate:
kubectl get pods -w -n kube-system
- Go to
examples/
directory and follow the instructions from there.