minikube/site/content/en/docs/tutorials/kubevirt.md

44 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: "How to use KubeVirt with minikube"
linkTitle: "KubeVirt Support"
weight: 1
date: 2020-05-26
description: >
Using KubeVirt with minikube
---
## Prerequisites
- kvm2 driver
### Enable KubeVirt on minikube
Minikube can be started with default values and those will be enough to run a quick example, that being said, if you can spare a few more GiBs of RAM (by default it uses 2GiB), itll allow you to experiment further.
Well create a profile for KubeVirt so it gets its own settings without interfering what any configuration you might have already, lets start by increasing the default memory to 4GiB:
```shell script
minikube config -p kubevirt set memory 4096
minikube config -p kubevirt set vm-driver kvm2
minikube start -p kubevirt
```
To enable this addon, simply run:
```shell script
minikube addons enable kubevirt
```
In a minute or so kubevirt's default components will be installed into your cluster.
You can run `kubectl get pods -n kubevirt` to see the progress of the kubevirt installation.
### Disable KubeVirt
To disable this addon, simply run:
```shell script
minikube addons disable kubevirt
```
### More Information
See official [Minikube Quickstart](https://kubevirt.io/quickstart_minikube/) documentation for more information and to install KubeVirt without using the addon.