Last active
March 16, 2022 10:55
-
-
Save fabiand/7d71114a4bcd65920b9f24fd85c96bc3 to your computer and use it in GitHub Desktop.
This file contains 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/v1 | |
kind: VirtualMachineInstanceDomainPreferences | |
metadata: | |
name: linux | |
spec: | |
preferNetworkInterfaceMultiQueue: true | |
preferBlockMultiQueue: true | |
diskDefaults: | |
preferedDiskBus: virtio | |
preferedCDROMBus: virtio | |
createInterfaces: yes | |
createDisks: yes | |
createResources: yes | |
--- | |
apiVersion: kubevirt.io/v1 | |
kind: VirtualMachineInstanceType | |
metadata: | |
name: m4.large | |
spec: | |
resources: | |
requests: | |
cpu: 2 | |
memory: 8GiB | |
gpus: | |
- deviceName: nvidia.com/T400_AWSM | |
name: gpu0 | |
--- | |
apiVersion: kubevirt.io/v1 | |
kind: VirtualMachine | |
metadata: | |
name: large-penguin | |
spec: | |
instanceType: | |
name: m4.large | |
domainPreferences: # Could be inferred from spec.volumes[0] metadata | |
name: linux | |
volumes: | |
- name: rootfs # First volume is boot disk by default | |
containerDisk: | |
image: kubevirt/cirros-registry-disk-demo | |
- name: cloudinit | |
cloudInitNoCloud: | |
userDataBase64: SGkuXG4= | |
--- | |
apiVersion: kubevirt.io/v1 | |
kind: VirtualMachineInstance | |
metadata: | |
name: large-penguin | |
spec: | |
domain: | |
devices: | |
disks: | |
- disk: | |
bus: virtio | |
name: rootfs | |
- disk: | |
bus: virtio | |
name: cloudinit | |
interfaces: | |
- name: default | |
masquerade: {} | |
gpus: # inferred if DP can detect device type | |
- deviceName: nvidia.com/T400_SMALL | |
name: gpu0 | |
resources: # Note this new indentation here! In VMI.spec. | |
requests: | |
memory: 8GiB | |
cpu: 2 | |
networks: | |
- name: default | |
pod: {} | |
volumes: | |
- name: rootfs | |
containerDisk: | |
image: kubevirt/cirros-registry-disk-demo | |
- name: cloudinit | |
cloudInitNoCloud: | |
userDataBase64: SGkuXG4= | |
- name: dv0 | |
source: | |
pvc: … |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment