blob: 1f4e236261dc299ef6571afe72f2d8cf4538307d [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-volumes
7 name: cirros-volumes
8spec:
9 running: false
10 template:
11 metadata:
12 labels:
13 kubevirt.io/vm: cirros-volumes
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 resources:
34 requests:
35 memory: 128Mi
36 terminationGracePeriodSeconds: 0
37 volumes:
38 - containerDisk:
39 image: docker.io/jumpojoy/kubevirt-cirros:0.6.2
40 name: containerdisk
41 - name: mypvcdisk
42 persistentVolumeClaim:
43 claimName: cirros-volumes
44 - hostDisk:
45 capacity: 1Gi
46 path: /data/disk.img
47 type: DiskOrCreate
48 name: host-disk
49 - name: metrics
50 downwardMetrics: {}
51 - cloudInitNoCloud:
52 userData: |
53 #!/bin/sh
54 echo 'printed from cloud-init userdata'
55 name: cloudinitdisk