You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

  1. ---
  2. apiVersion: kubevirt.io/v1alpha3
  3. kind: VirtualMachine
  4. metadata:
  5. name: "instance-{{ vm_id }}"
  6. namespace: "{{ test_name }}"
  7. labels:
  8. kubevirt.io/os: {{ cloud_image }}
  9. spec:
  10. running: true
  11. template:
  12. metadata:
  13. labels:
  14. kubevirt.io/size: small
  15. kubevirt.io/domain: "{{ test_name }}"
  16. spec:
  17. domain:
  18. devices:
  19. blockMultiQueue: true
  20. disks:
  21. - disk:
  22. bus: virtio
  23. name: containervolume
  24. cache: writethrough
  25. - disk:
  26. bus: virtio
  27. name: cloudinitvolume
  28. interfaces:
  29. - name: default
  30. bridge: {}
  31. cpu:
  32. cores: {{ vm_cpu_cores }}
  33. sockets: {{ vm_cpu_sockets }}
  34. threads: {{ vm_cpu_cores }}
  35. resources:
  36. requests:
  37. memory: {{ vm_memory * memory_allocation_ratio }}
  38. cpu: {{ vm_cpu_cores * cpu_allocation_ratio }}
  39. limits:
  40. memory: {{ vm_memory }}
  41. cpu: {{ vm_cpu_cores }}
  42. networks:
  43. - name: default
  44. pod: {}
  45. terminationGracePeriodSeconds: 0
  46. volumes:
  47. - name: containervolume
  48. containerDisk:
  49. image: quay.io/kubespray/vm-{{ cloud_image }}
  50. - name: cloudinitvolume
  51. cloudInitNoCloud:
  52. userDataBase64: {{ cloud_init[cloud_image] }}