diff --git a/example/local-path/kustomization.yaml b/example/local-path/kustomization.yaml index f3bd76d..b9139eb 100644 --- a/example/local-path/kustomization.yaml +++ b/example/local-path/kustomization.yaml @@ -13,9 +13,12 @@ patches: metadata: name: vmop-image-repository spec: + # Default is ReadOnlyMany accessModes: - ReadWriteOnce resources: requests: + # Default is 100Gi storage: 10Gi + # Default is to use the default storage class storageClassName: local-path diff --git a/example/rook-ceph/Readme.md b/example/rook-ceph/Readme.md index 13fbf81..1d2cfc6 100644 --- a/example/rook-ceph/Readme.md +++ b/example/rook-ceph/Readme.md @@ -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 diff --git a/example/rook-ceph/kustomization.yaml b/example/rook-ceph/kustomization.yaml index 00b0b6e..495fe3c 100644 --- a/example/rook-ceph/kustomization.yaml +++ b/example/rook-ceph/kustomization.yaml @@ -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