Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-7031

[Operator] It should be possible for users to specify Batch resource request/limits

XMLWordPrintable

      Currently the Batch Job created by the Operator does not define CPU or Memory request/limits. Consequently, customers that have quotas set which require limits/requests set as mandatory field will not be able to utilise Batch CRs.

      We should allow users to define the resource request/limits via the Batch CR, e.g:

      apiVersion: infinispan.org/v2alpha1
      kind: Batch
      metadata: 
        name: mybatch
      spec: 
        cluster: infinispan
        configMap: mybatch-config-map
        container: 
          cpu: "2000m:1000m"
          memory: "2Gi:1Gi"
      

      It's also possible to workaround this limitation by defining a Limit Range to ensure that request/limits are automatically defined on the Job pods.

              vrigamon@redhat.com Vittorio Rigamonti
              remerson@redhat.com Ryan Emerson
              Pavel Drobek Pavel Drobek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: