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

@ -13,9 +13,12 @@ patches:
metadata: metadata:
name: vmop-image-repository name: vmop-image-repository
spec: spec:
# Default is ReadOnlyMany
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
resources: resources:
requests: requests:
# Default is 100Gi
storage: 10Gi storage: 10Gi
# Default is to use the default storage class
storageClassName: local-path storageClassName: local-path

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 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 (and the VMs managed by it) and applies patches to use `rook-cephfs` as
a small volume using a ceph fs. storage class (instead of the default storage class).
The `kustomize.yaml` does not include the test VM. Before creating The `kustomize.yaml` does not include the test VM. Before creating
the test VM, you will again most likely want to change the the test VM, you will again most likely want to change the

View file

@ -7,15 +7,24 @@ resources:
namespace: vmop-demo namespace: vmop-demo
patches: patches:
# Use storage class rook-cephfs for the shared image repository
- patch: |- - patch: |-
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
apiVersion: v1 apiVersion: v1
metadata: metadata:
name: vmop-image-repository name: vmop-image-repository
spec: spec:
accessModes:
- ReadOnlyMany
resources:
requests:
storage: 100Gi
storageClassName: rook-cephfs 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