Uploaded image for project: 'KIE Cloud'
  1. KIE Cloud
  2. KIECLOUD-538

Reconciliation loop if set CPU limit to 1000m

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.11.1.GA
    • 7.10.1.GA
    • Operator
    • None
    • Hide

      Deploy a kieapp with the following CR:

       

       

      apiVersion: app.kiegroup.org/v2
      kind: KieApp
      metadata:
        name: kieapp-1
        namespace: pam
      spec:
        environment: rhpam-production-immutable
        upgrades:
          minor: false
          enabled: false
        useImageTags: true
        commonConfig:
          adminUser: admin
          adminPassword: passwd
        objects:
          servers:
            - id: kieserver-1
              resources:
                limits:
                  cpu: 1000m
                  memory: 6Gi
                requests:
                  cpu: 500m
                  memory: 2Gi
              database:
                externalConfig:
                  dialect: org.hibernate.dialect.MariaDBDialect
                  driver: mariadb
                  host: host-1
                  name: kie-db-1
                  password: root_password
                  port: '3306'
                  username: root
                type: external
      

       

       

      Show
      Deploy a kieapp with the following CR:     apiVersion: app.kiegroup.org/v2 kind: KieApp metadata: name: kieapp-1 namespace: pam spec: environment: rhpam-production-immutable upgrades: minor: false enabled: false useImageTags: true commonConfig: adminUser: admin adminPassword: passwd objects: servers: - id: kieserver-1 resources: limits: cpu: 1000m memory: 6Gi requests: cpu: 500m memory: 2Gi database: externalConfig: dialect: org.hibernate.dialect.MariaDBDialect driver: mariadb host: host-1 name: kie-db-1 password: root_password port: '3306' username: root type: external    
    • Undefined

      If setting CPU limits to, eg, "1000m" the operator will fail, and the reconcile loop will not end.

      Seems to be something on how the conversion of the value is done by the operator.
      A workaround would be to use just the number of CPUs without the "m" suffix.

              rhn-support-fspolti Filippe Spolti
              rhn-support-fspolti Filippe Spolti
              Jakub Schwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: