VM-Operator/example/local-path
2023-08-14 11:01:21 +02:00
..
kustomization.yaml Update kustomization.yaml 2023-08-14 06:18:22 +02:00
Readme.md Update Readme.md 2023-08-14 06:25:59 +02:00
test-vm.yaml Fix name. 2023-08-14 11:01:21 +02:00

Example setup

The CRD must be deployed independently.

kubectl apply -f https://github.com/mnlipp/VM-Operator/raw/main/deploy/crds/vms-crd.yaml

Apart from that, the kustomize.yaml defines a namespace for the manager (and the VMs managed by it) and patches the repository PVC to create a small volume using local-path.

A second patch provides a new configuration file for the manager that makes it use the local-path storage class when creating the small volume for a runner's data.

The kustomize.yaml does not include the test VM. Before creating the test VM, you will again most likely want to change the disk definition. The sample file uses a reference to some manually allocated PV.