Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74950

Improve the K8s Maven sample to run in resources limited environments

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • kubernetes-plugin
    • None

      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" 

       

            jgarciacloudbees Javier García
            jgarciacloudbees Javier García
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: