In order to try out the example, do the following on a cluster that
has nodes with Virtlet on it (see the instructions in
deploy/
directory):
- Create image server Deployment and Service:
kubectl create -f image-server.yaml -f image-service.yaml
- Wait for image-server pod to become
Running
:
kubectl get pods -w
- Create a sample VM:
kubectl create -f cirros-vm.yaml
- Wait for
cirros-vm
pod to becomeRunning
:
kubectl get pods -w
- List libvirt domains:
./virsh.sh list
- Connect to the VM console:
./virsh.sh console $(./virsh.sh list --name)