docs: virtual machines running on kubevirt

This commit is contained in:
Ryan Yin
2024-03-31 17:07:59 +08:00
parent 7ef943a7b5
commit 87797d1252
2 changed files with 26 additions and 36 deletions

20
Virtual-Machine.md Normal file
View File

@@ -0,0 +1,20 @@
## How to create & managage KubeVirt's Virtual Machine from this flake?
Use `aquamarine` as an example, we can create a virtual machine with the following command:
```shell
just upload-vm aquamarine
```
Then create the virtual machine by creating a yaml file at
[ryan4yin/k8s-gitops](https://github.com/ryan4yin/k8s-gitops/tree/main/vms)
Once the virtual machine `aquamarine` is created, we can deploy updates to it with the following
commands:
```shell
just col aquamarine
```
If you're not familiar with remote deployment, please read this tutorial first:
[Remote Deployment - NixOS & Flakes Book](https://nixos-and-flakes.thiscute.world/best-practices/remote-deployment)