Improve the K8s Maven sample to run in resources limited environments

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

XMLWordPrintable

      The sample defined in 

      https://github.com/jenkinsci/kubernetes-plugin/blob/master/src/main/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/samples/maven.groovy

      Does not specify any kind of request and limit.

      In resource limited environments it could fail due to OOM events.

      We have reproduced this issue by running it in a pod with memoty limited to 256Mi.

      We need to proper handle it by including resource requests and limits for memory.

      Valid values can be:

      spec:
        containers:
        - resources:
            requests:
              memory: "256Mi"
            limits:
              memory: "512Mi" 

       

            Assignee:
            Javier García
            Reporter:
            Javier García
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: