Configuring CDI to work with namespaces that have a compute resource quota

    A resource quota, defined by the object, imposes restrictions on a namespace that limit the total amount of compute resources that can be consumed by resources within that namespace.

    The HyperConverged custom resource (CR) defines the user configuration for the Containerized Data Importer (CDI). The CPU and memory request and limit values are set to a default value of 0. This ensures that pods created by CDI that do not specify compute resource requirements are given the default values and are allowed to run in a namespace that is restricted with a quota.

    Prerequisites

    • Install the OpenShift CLI (oc).

    Procedure

    1. Add the stanza to the CR, setting the values based on your use case. For example:

      1. kind: HyperConverged
      2. metadata:
      3. name: kubevirt-hyperconverged
      4. spec:
      5. resourceRequirements:
      6. cpu: "500m"
      7. memory: "2Gi"
      8. requests:
      9. cpu: "250m"
      10. memory: "1Gi"
    2. Save and exit the editor to update the CR.