-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Minor
-
Component/s: kubernetes-plugin
-
Environment:CJP 2.73
Kubernetes Plugin 1.8.4
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
"""