Update examples.

This commit is contained in:
Michael Lipp 2023-08-13 17:42:24 +02:00
parent ec4e6c64ba
commit ef4576104f
3 changed files with 19 additions and 7 deletions

View file

@ -7,8 +7,8 @@ kubectl apply -f https://github.com/mnlipp/VM-Operator/raw/main/deploy/crds/vms-
```
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 a ceph fs.
(and the VMs managed by it) and applies patches to use `rook-cephfs` as
storage class (instead of the default storage class).
The `kustomize.yaml` does not include the test VM. Before creating
the test VM, you will again most likely want to change the

View file

@ -7,15 +7,24 @@ resources:
namespace: vmop-demo
patches:
# Use storage class rook-cephfs for the shared image repository
- patch: |-
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: vmop-image-repository
spec:
accessModes:
- ReadOnlyMany
resources:
requests:
storage: 100Gi
storageClassName: rook-cephfs
# Use storage class rook-cepfs for the runner's data (e.g. EFI vars)
- patch: |-
kind: ConfigMap
apiVersion: v1
metadata:
name: vm-operator
data:
config.yaml: |
"/Manager":
"/Controller":
runnerData:
storageClassName: rook-cephfs