Add/update example configurations.

This commit is contained in:
Michael Lipp 2023-08-11 12:22:26 +02:00
parent 40a005329f
commit 3c5b7334a8
8 changed files with 156 additions and 18 deletions

10
example/Readme.md Normal file
View file

@ -0,0 +1,10 @@
# Example setup for development
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 `kustomize.yaml` does not include the test VM. Before creating
the test VM, you will again most likely want to change the
disk definition.

View file

@ -0,0 +1,21 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://github.com/mnlipp/VM-Operator/deploy
namespace: vmop-demo
# patches:
# - patch: |-
# kind: PersistentVolumeClaim
# apiVersion: v1
# metadata:
# name: vmop-image-repository
# spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 10Gi
# storageClassName: local-path

View file

@ -1,7 +1,7 @@
apiVersion: "vmoperator.jdrupes.org/v1"
kind: VirtualMachine
metadata:
namespace: qemu-vms
namespace: vmop-demo
name: test-vm
spec:
@ -14,7 +14,7 @@ spec:
vm:
maximumCpus: 4
currentCpus: 4
currentCpus: 3
maximumRam: "8 GiB"
currentRam: "4 GiB"
@ -36,7 +36,6 @@ spec:
requests:
storage: 40Gi
# - hostDevice: /dev/vgmain/test-vm
display:
spice:
port: 5910

View file

@ -1,15 +0,0 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: vmop-image-repository
namespace: qemu-vms
labels:
app.kubernetes.io/name: vmoperator
spec:
storageClassName: rook-cephfs
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi