Skip to content

Latest commit

 

History

History
85 lines (60 loc) · 2.51 KB

quickstart_kind.md

File metadata and controls

85 lines (60 loc) · 2.51 KB
layout title permalink navbar_active redirect_from order lab tags
labs
KubeVirt quickstart with kind
/quickstart_kind/
Labs
/get_kubevirt/
2
kind
Kubernetes
kind
kubevirt
VM
virtual machine

Easy install using kind

Kind quickly sets up a local Kubernetes cluster on macOS, Linux, and Windows allowing software developers to quickly get started working with Kubernetes.

Prepare kind Kubernetes environment

{% include quickstarts/kubectl.md %}

  • To install kind please follow the official documentation for your system using the instructions located here.

  • Starting kind can be as simple as running the following command:

    kind create cluster

info "" See the kind User Guide here for advanced start options and instructions on how to operate kind.

Deploy KubeVirt

KubeVirt can be installed using the KubeVirt operator, which manages the lifecycle of all the KubeVirt core components.

  • Use kubectl to deploy the KubeVirt operator:

    export VERSION=$(curl -s https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirt/stable.txt)
    
    echo $VERSION
    kubectl create -f "https://github.com/kubevirt/kubevirt/releases/download/${VERSION}/kubevirt-operator.yaml"

    warning "Nested virtualization" If the kind cluster runs on a virtual machine consider enabling nested virtualization. Follow the instructions described here{:target="_blank"}. If for any reason nested virtualization cannot be enabled do enable KubeVirt emulation as follows:

    kubectl -n kubevirt patch kubevirt kubevirt --type=merge --patch '{"spec":{"configuration":{"developerConfiguration":{"useEmulation":true}}}}'
  • Again use kubectl to deploy the KubeVirt custom resource definitions:

    kubectl create -f "https://github.com/kubevirt/kubevirt/releases/download/${VERSION}/kubevirt-cr.yaml"

Verify components

By default KubeVirt will deploy 6 pods, 4 services, 1 daemonset, 3 deployment apps, 3 replica sets.

  • Check the deployment:

    kubectl get kubevirt.kubevirt.io/kubevirt -n kubevirt -o=jsonpath="{.status.phase}"
  • Check the components:

    kubectl get all -n kubevirt

{% include quickstarts/virtctl.md %}

{% include labs-description.md %}

{% include found_a_bug.md %}