Skip to content

Jenkins container resource configuration

In Kubernetes deployments, the Jenkins container resource configuration is managed using the resources field within the container specification.^[400-devops__06-Kubernetes__k8s-jenkins__k8s.md]

CPU and Memory Limits

The configuration defines specific constraints for both CPU and memory usage.

  • CPU: The maximum CPU is capped at 1200m, while the allocation request is set to 1000m.^[400-devops__06-Kubernetes__k8s-jenkins__k8s.md]
  • Memory: The maximum memory allocation is 2Gi, with a request of 1Gi.^[400-devops__06-Kubernetes__k8s-jenkins__k8s.md]

Java Heap Settings

In addition to container-level limits, the configuration controls the Java Virtual Machine (JVM) memory behavior via the JAVA_OPTS environment variable.^[400-devops__06-Kubernetes__k8s-jenkins__k8s.md]

Specifically, the configuration sets the minimum heap size (-Xms) to 256m and the maximum heap size (-Xmx) to 1024m^[400-devops__06-Kubernetes__k8s-jenkins__k8s.md].

Sources

^[400-devops__06-Kubernetes__k8s-jenkins__k8s.md]