Skip to content

Instantly share code, notes, and snippets.

@fabiand
Last active June 10, 2020 13:50
Show Gist options
  • Save fabiand/c8b06bd7d0d1c395f9d562532cf62438 to your computer and use it in GitHub Desktop.
Save fabiand/c8b06bd7d0d1c395f9d562532cf62438 to your computer and use it in GitHub Desktop.
---
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
labels:
special: vmi-alpine-kernel
name: vmi-alpine-kernel
spec:
domain:
firmware:
kernelBoot:
volumeName: kernelDisk
# kubevirt assumes that the volumeName named above will container a vmlinuz (kernel) and initrd.img for boothing. If not, then we should raise an error
cmdline: "<user cmdline arguments>"
volumes:
- containerDisk:
image: my-container-disk-with-kernel-and-initrd
name: kernelDisk
# The assumption is that the container will container a vmlinuz and initrd.img file which will then be used by kubevirt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment