Add example configurations.

This commit is contained in:
Michael Lipp 2023-08-12 18:27:22 +02:00
parent 9e83712c9b
commit 8acd98d703
6 changed files with 107 additions and 21 deletions

View file

@ -1,10 +1,16 @@
# Example setup for development
# Example setup
The CRD must be deployed independently. Apart from that, the
`kustomize.yaml` defines a namespace for the manager (and the VMs
managed by it). You will most likely want to patch the PVC
for the image repository.
The CRD must be deployed independently.
```sh
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.
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.
disk definition. The sample file uses a reference to some
manually allocated PV.

View file

@ -6,16 +6,16 @@ resources:
namespace: vmop-demo
# patches:
# - patch: |-
# kind: PersistentVolumeClaim
# apiVersion: v1
# metadata:
# name: vmop-image-repository
# spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 10Gi
# storageClassName: local-path
patches:
- patch: |-
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: vmop-image-repository
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: local-path

View file

@ -14,12 +14,12 @@ spec:
vm:
maximumCpus: 4
currentCpus: 3
currentCpus: 2
maximumRam: "8 GiB"
currentRam: "4 GiB"
networks:
- tap: {}
- user: {}
disks:
- volumeClaimTemplate:
@ -35,6 +35,10 @@ spec:
resources:
requests:
storage: 40Gi
- cdrom:
image: ""
# image: https://download.fedoraproject.org/pub/fedora/linux/releases/38/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-38-1.6.iso
# image: "Fedora-Workstation-Live-x86_64-38-1.6.iso"
display:
spice: