blob: b2039853a6e98edfa3ea92998b49c9ea45ab050a [file] [log] [blame]
---
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
labels:
kubevirt.io/vm: cirros-migrate
name: cirros-migrate
spec:
running: false
template:
metadata:
labels:
kubevirt.io/vm: cirros-migrate
spec:
domain:
devices:
disks:
- disk:
bus: virtio
name: containerdisk
- disk:
bus: virtio
name: cloudinitdisk
# - disk:
# bus: virtio
# name: host-disk
- disk:
bus: virtio
name: metrics
- disk:
bus: virtio
name: mypvcdisk
interfaces:
- name: default
masquerade: {}
resources:
requests:
memory: 128Mi
terminationGracePeriodSeconds: 0
networks:
- name: default
pod: {} # Stock pod network
volumes:
- containerDisk:
image: docker.io/jumpojoy/kubevirt-cirros:0.6.2
name: containerdisk
- name: mypvcdisk
persistentVolumeClaim:
claimName: cirros-migrate
# - hostDisk:
# capacity: 1Gi
# path: /data/disk.img
# type: DiskOrCreate
# name: host-disk
- name: metrics
downwardMetrics: {}
- cloudInitNoCloud:
userData: |
#!/bin/sh
echo 'printed from cloud-init userdata'
name: cloudinitdisk