This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      I am facing issue with configuring resource limits in declarative pipelines. It is not recognized.

      Jenkins config and scripted pipeline works. On declarative pipeline and doing describe pod, it always doesn't show the request and limits configured.

      See pipeline snippet below (maven container doesn't run with the limits stated)

      pipeline {
        agent {
          kubernetes {
            label env.BUILD_TAG
            inheritFrom 'BASE'
            defaultContainer 'jnlp'
            yaml """
      spec:
        containers:
        - name: maven
          image: maven:3.5-jdk-8
          resourceRequestMemory: 500Mi
          resourceLimitMemory: 1000Mi
          alwaysPullImage: true
          tty: true
          workingDir: /var/lib/jenkins
          command:
          - cat
      """
      

            Assignee:
            Carlos Sanchez
            Reporter:
            Ray Lim
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: