Created
September 20, 2020 22:07
-
-
Save ams0/270b236e9d875e4352911a9c1a2b87df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: kubevirt.io/v1alpha3 | |
kind: VirtualMachine | |
metadata: | |
name: testvm | |
spec: | |
running: false | |
template: | |
metadata: | |
labels: | |
kubevirt.io/size: small | |
kubevirt.io/domain: testvm | |
spec: | |
nodeSelector: | |
nested: true # make sure VMs land on nested-virt-enabled pools | |
domain: | |
devices: | |
disks: | |
- disk: | |
bus: virtio | |
name: rootfs | |
- disk: | |
bus: virtio | |
name: cloudinit | |
interfaces: | |
- name: default | |
masquerade: {} | |
resources: | |
requests: | |
memory: 64M | |
networks: | |
- name: default | |
pod: {} | |
volumes: | |
- name: rootfs | |
containerDisk: | |
image: kubevirt/cirros-registry-disk-demo | |
- name: cloudinit | |
cloudInitNoCloud: | |
userDataBase64: SGkuXG4= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment