blob: b2039853a6e98edfa3ea92998b49c9ea45ab050a [file] [log] [blame]
Vasyl Saienko775c1da2023-07-13 11:34:25 +00001---
2apiVersion: kubevirt.io/v1
3kind: VirtualMachine
4metadata:
5 labels:
6 kubevirt.io/vm: cirros-migrate
7 name: cirros-migrate
8spec:
9 running: false
10 template:
11 metadata:
12 labels:
13 kubevirt.io/vm: cirros-migrate
14 spec:
15 domain:
16 devices:
17 disks:
18 - disk:
19 bus: virtio
20 name: containerdisk
21 - disk:
22 bus: virtio
23 name: cloudinitdisk
24 # - disk:
25 # bus: virtio
26 # name: host-disk
27 - disk:
28 bus: virtio
29 name: metrics
30 - disk:
31 bus: virtio
32 name: mypvcdisk
33 interfaces:
34 - name: default
35 masquerade: {}
36 resources:
37 requests:
38 memory: 128Mi
39 terminationGracePeriodSeconds: 0
40 networks:
41 - name: default
42 pod: {} # Stock pod network
43 volumes:
44 - containerDisk:
45 image: docker.io/jumpojoy/kubevirt-cirros:0.6.2
46 name: containerdisk
47 - name: mypvcdisk
48 persistentVolumeClaim:
49 claimName: cirros-migrate
50 # - hostDisk:
51 # capacity: 1Gi
52 # path: /data/disk.img
53 # type: DiskOrCreate
54 # name: host-disk
55 - name: metrics
56 downwardMetrics: {}
57 - cloudInitNoCloud:
58 userData: |
59 #!/bin/sh
60 echo 'printed from cloud-init userdata'
61 name: cloudinitdisk