Skip to content

Instantly share code, notes, and snippets.

@guangbochen
Last active August 25, 2020 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guangbochen/d805584b1c137b7204d64d2080021e57 to your computer and use it in GitHub Desktop.
Save guangbochen/d805584b1c137b7204d64d2080021e57 to your computer and use it in GitHub Desktop.
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
name: k3os-img
spec:
dataVolumeTemplates:
- metadata:
name: k3os-cdroom-disk
spec:
pvc:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
source:
http:
url: https://github.com/rancher/k3os/releases/download/v0.11.0/k3os-amd64.iso
- metadata:
name: k3os-rootdisk
spec:
pvc:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
source:
blank: {}
running: true
template:
spec:
domain:
cpu:
cores: 1
devices:
disks:
- disk:
bus: virtio
name: rootdisk
bootOrder: 1
- cdrom:
bus: sata
readonly: true
name: cdrom-disk
bootOrder: 2
resources:
requests:
memory: 2048M
volumes:
- dataVolume:
name: k3os-rootdisk
name: rootdisk
- dataVolume:
name: k3os-cdroom-disk
name: cdrom-disk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment