Create a demo environment that consists of
- an "external" VM that hosts a service and
- a local k8s cluster that consumes the service on the VM
This repository holds all setup to show a demo importing a virtual machine into a Kubernetes cluster where KubeVirt is installed, and then exercising some of the possibilities of KubeVirt.
It contains the setup for two services
- the cowsay service
- the fortune service
- Configure a virtual machine as described in ./vm/README.md
source envrc
go-task vm:prepare
go-task demo:prepare
This should give you the initial demo environment, where you will have a vm running, and a local kubernetes cluster consuming the external service. It should launch the fortune service that gives you a fortune embedded inside a random cowsay character.
Test it:
watch -n 4 curl -s localhost:9090
You may run this command in a separate terminal to see what happens during changes to the services and vms.
This step imports the prepared vm into the Kubernetes cluster, starts it and redirects the fortune service to use the internal service backed by the vm.
# start vm import, change the service to using the internal vm
go-task demo:fortune-internal
# show virtual machines in the cluster
kubectl get vmis