From 043666a9328bce525a014f94d9d7e40182daf2e5 Mon Sep 17 00:00:00 2001 From: "Michael N. Lipp" Date: Sun, 17 Nov 2024 15:08:22 +0100 Subject: [PATCH] Generate test VMs. --- dev-example/.gitignore | 1 + dev-example/test-vm-snapshot.yaml | 10 ++++++++++ dev-example/test-vm.tpl.yaml | 6 +++--- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 dev-example/test-vm-snapshot.yaml diff --git a/dev-example/.gitignore b/dev-example/.gitignore index 728072e..16e0d04 100644 --- a/dev-example/.gitignore +++ b/dev-example/.gitignore @@ -1,2 +1,3 @@ /test-vm-ci.yaml /kubeconfig.yaml +/crds/ diff --git a/dev-example/test-vm-snapshot.yaml b/dev-example/test-vm-snapshot.yaml new file mode 100644 index 0000000..fd60a25 --- /dev/null +++ b/dev-example/test-vm-snapshot.yaml @@ -0,0 +1,10 @@ +--- +apiVersion: snapshot.storage.k8s.io/v1 +kind: VolumeSnapshot +metadata: + namespace: vmop-dev + name: test-vm-system-disk-snapshot +spec: + volumeSnapshotClassName: csi-rbdplugin-snapclass + source: + persistentVolumeClaimName: test-vm-system-disk diff --git a/dev-example/test-vm.tpl.yaml b/dev-example/test-vm.tpl.yaml index aa6f3d1..6d8a89c 100644 --- a/dev-example/test-vm.tpl.yaml +++ b/dev-example/test-vm.tpl.yaml @@ -27,7 +27,8 @@ spec: guestShutdownStops: true - cloudInit: {} + cloudInit: + metaData: {} vm: # state: Running @@ -49,7 +50,7 @@ spec: spec: storageClassName: ceph-rbd3slow dataSource: - name: test-vm-snapshot-1 + name: test-vm-system-disk-snapshot kind: VolumeSnapshot apiGroup: snapshot.storage.k8s.io accessModes: @@ -64,4 +65,3 @@ spec: display: spice: port: <%= $((5910 + number)) %> - server: 192.168.179.20