Vasyl Saienko | 775c1da | 2023-07-13 11:34:25 +0000 | [diff] [blame^] | 1 | --- |
| 2 | apiVersion: kubevirt.io/v1 |
| 3 | kind: VirtualMachine |
| 4 | metadata: |
| 5 | labels: |
| 6 | kubevirt.io/vm: cirros-memdump |
| 7 | name: cirros-memdump |
| 8 | spec: |
| 9 | running: false |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | kubevirt.io/vm: cirros-memdump |
| 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 | resources: |
| 25 | requests: |
| 26 | memory: 128Mi |
| 27 | terminationGracePeriodSeconds: 0 |
| 28 | volumes: |
| 29 | - containerDisk: |
| 30 | image: docker.io/jumpojoy/kubevirt-cirros:0.6.2 |
| 31 | name: containerdisk |
| 32 | - cloudInitNoCloud: |
| 33 | userData: | |
| 34 | #!/bin/sh |
| 35 | echo 'printed from cloud-init userdata' |
| 36 | name: cloudinitdisk |