Skip to content

Instantly share code, notes, and snippets.

@fabiand
Created September 2, 2022 11:41
Show Gist options
  • Save fabiand/5c57801c3fccd9ff920805777469c802 to your computer and use it in GitHub Desktop.
Save fabiand/5c57801c3fccd9ff920805777469c802 to your computer and use it in GitHub Desktop.
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: fedora
spec:
template:
spec:
domain:
cpu:
cores: 2
devices:
disks:
- disk:
bus: virtio
name: containerdisk
interfaces:
- masquerade: {}
model: virtio
name: default
networkInterfaceMultiqueue: true
rng: {}
resources:
requests:
memory: 2GiB
networks:
- name: default
pod: {}
terminationGracePeriodSeconds: 0
volumes:
- containerDisk:
image: registry:5000/kubevirt/fedora-with-test-tooling-container-disk:devel
name: containerdisk
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: fedora
spec:
instancetype:
name: c.medium
preference:
name: fedora
runStrategy: Always
template:
spec:
volumes:
- containerDisk:
image: quay.io/containerdisks/fedora:latest
name: containerdisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment