VM-Operator/example/local-path/Readme.md

21 lines
707 B
Markdown
Raw Normal View History

2023-08-12 18:27:22 +02:00
# Example setup
2023-08-11 12:22:26 +02:00
2024-06-09 22:54:42 +02:00
The CRD must be deployed independently.
2023-08-12 18:27:22 +02:00
```sh
kubectl apply -f https://github.com/mnlipp/VM-Operator/raw/main/deploy/crds/vms-crd.yaml
```
2024-06-09 22:54:42 +02:00
Apart from that, the `kustomize.yaml` defines a namespace for the manager
2023-08-12 18:27:22 +02:00
(and the VMs managed by it) and patches the repository PVC to create
a small volume using local-path.
2023-08-11 12:22:26 +02:00
2024-06-09 22:54:42 +02:00
A second patch provides a new configuration file for the manager
that makes it use the local-path storage class when creating the
2023-08-14 06:25:59 +02:00
small volume for a runner's data.
2023-08-11 12:22:26 +02:00
The `kustomize.yaml` does not include the test VM. Before creating
the test VM, you will again most likely want to change the
2023-08-12 18:27:22 +02:00
disk definition. The sample file uses a reference to some
manually allocated PV.