Improve logging.

This commit is contained in:
Michael Lipp 2023-08-12 15:05:56 +02:00
parent 6310c7fb82
commit 3e2a5af6fd
4 changed files with 3 additions and 3 deletions

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

@ -0,0 +1,41 @@
apiVersion: "vmoperator.jdrupes.org/v1"
kind: VirtualMachine
metadata:
namespace: vmop-demo
name: test-vm
spec:
image:
# Defaults:
# repository: ghcr.io
# path: mnlipp/org.jdrupes.vmoperator.runner.qemu-arch
# version: latest
pullPolicy: Always
vm:
maximumCpus: 4
currentCpus: 3
maximumRam: "8 GiB"
currentRam: "4 GiB"
networks:
- tap: {}
disks:
- volumeClaimTemplate:
metadata:
name: test-vm-system
spec:
storageClassName: ""
selector:
matchLabels:
app.kubernetes.io/name: vmrunner
app.kubernetes.io/instance: test-vm
vmrunner.jdrupes.org/disk: system
resources:
requests:
storage: 40Gi
display:
spice:
port: 5910