Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

kwok-ci/kubevirt-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubevirt

Create cluster

kind create cluster

Install kubevirt

More see docs

kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/v1.1.1/kubevirt-operator.yaml
kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/v1.1.1/kubevirt-cr.yaml
kubectl -n kubevirt patch kubevirt kubevirt --type=merge --patch '{"spec":{"configuration":{"developerConfiguration":{"useEmulation":true}}}}'

Instal kwok

More see docs

kubectl create -f https://github.com/wzshiming/kwok/releases/download/v0.5.0-rc.3/kwok.yaml
kubectl create -f https://github.com/wzshiming/kwok/releases/download/v0.5.0-rc.3/stage-fast.yaml
kubectl -n kube-system patch deployment kwok-controller -p '{"spec":{"template":{"spec":{"hostNetwork":true}}}}'

Set up kwok for KubeVirt

kubectl create -k ./kustomize/kwok

Create Node

kubectl create -f ./testdata/node.yaml
kubectl get node kwok-node-0
# NAME          STATUS   ROLES   AGE   VERSION
# kwok-node-0   Ready    agent   10s   kwok-v0.5.0-rc.3

Test VMI

kubectl create -f ./testdata/vmi.yaml
kubectl get vmi test-vmi
# NAME       AGE   PHASE     IP    NODENAME      READY
# test-vmi   10s   Running         kwok-node-0   True