Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-22026

Add support for resource requests within instancetypes

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • CNV v4.13.0
    • CNV Infrastructure
    • None
    • CNV Infra 227, CNV Infra 230
    • None

      We don't currently have a way of expressing resource requests within a given instancetype and instead can only express the user visible resources for CPU and Memory, for example:

      apiVersion: instancetype.kubevirt.io/v1alpha2
      kind: VirtualMachineInstancetype
      metadata:
        name: csmall
      spec:
        cpu:
          guest: 1
        memory:
          guest: 128Mi

      It would be useful to be able to express resource requests as we can directly via the DomainSpec via something like :

       

      apiVersion: instancetype.kubevirt.io/v1alpha2
      kind: VirtualMachineInstancetype
      metadata:
        name: csmall
      spec:
        resources:

          requests:

            cpu: 100m

            memory: 128Mi    

       

      This would be mutually exclusive with the guest visible approach and should cause the creation or update of an instancetype to be rejected if both are present.

              opokorny@redhat.com Ondrej Pokorny
              rhn-support-lyarwood Lee Yarwood
              Lee Yarwood
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: