Improve logging.
This commit is contained in:
parent
6310c7fb82
commit
3e2a5af6fd
4 changed files with 3 additions and 3 deletions
10
example/local-path/Readme.md
Normal file
10
example/local-path/Readme.md
Normal 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.
|
||||
21
example/local-path/kustomization.yaml
Normal file
21
example/local-path/kustomization.yaml
Normal 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
|
||||
41
example/local-path/test-vm.yaml
Normal file
41
example/local-path/test-vm.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue