Skip to content

Instantly share code, notes, and snippets.

@zcahana
Created May 5, 2021 12:02
Show Gist options
  • Save zcahana/010d0ffc1c54c29e6d993c72476d7297 to your computer and use it in GitHub Desktop.
Save zcahana/010d0ffc1c54c29e6d993c72476d7297 to your computer and use it in GitHub Desktop.
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: alpine
spec:
running: false
template:
metadata:
labels:
kubevirt.io/size: small
kubevirt.io/domain: alpine
spec:
domain:
devices:
disks:
- disk:
bus: virtio
name: rootfs
interfaces:
- name: default
masquerade: {}
resources:
requests:
memory: 64M
networks:
- name: default
pod: {}
volumes:
- name: rootfs
dataVolume:
name: alpine-dv
dataVolumeTemplates:
- metadata:
name: alpine-dv
spec:
pvc:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
source:
http:
url: http://cdi-http-import-server.kubevirt/images/alpine.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment