apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: my-vm001
spec:
running: true
template:
metadata:
labels:
kubevirt.io/vm: my-vm001
spec:
nodeSelector:
kubernetes.io/hostname: master03
domain:
devices:
disks:
- name: my-disk001
disk:
bus: virtio
resources:
requests:
memory: 1G
volumes:
- name: my-disk001
persistentVolumeClaim:
claimName: test-kubevirt001