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

Error create pod

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When creating a pod, an error occurs:

      Error in provisioning; agent=KubernetesSlave name: test-pod-m0qkt, template=PodTemplate{id='c71e1f6a-dd6e-4951-b9e7-f24639d19b6f', name='test-pod', label='test-os', nodeUsageMode=NORMAL, containers=[ContainerTemplate\{name='java', image='registry/bellsoft/liberica-openjdk-alpine:15.0.1-9-with-certs', workingDir='/home/jenkins/agent', command='sleep', args='9999999', resourceRequestCpu='500m', resourceRequestMemory='500Mi', resourceRequestEphemeralStorage='', resourceLimitCpu='500m', resourceLimitMemory='500Mi', resourceLimitEphemeralStorage='', livenessProbe=ContainerLivenessProbe{execArgs='', timeoutSeconds=0, initialDelaySeconds=0, failureThreshold=0, periodSeconds=0, successThreshold=0}}]} io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://api.dev-gen2.6443/api/v1/namespaces/dev-draft/pods. Message: Pod "test-pod-m0qkt" is invalid: spec.containers[1].resources.requests: Invalid value: "256Mi": must be less than or equal to memory limit. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.containers[1].resources.requests, message=Invalid value: "256Mi": must be less than or equal to memory limit, reason=FieldValueInvalid, additionalProperties={})], group=null, kind=Pod, name=test-pod-m0qkt, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Pod "test-pod-m0qkt" is invalid: spec.containers[1].resources.requests: Invalid value: "256Mi": must be less than or equal to memory limit, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}). at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:639) at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:578) at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:543) at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:504) at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleCreate(OperationSupport.java:292) at io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleCreate(BaseOperation.java:893) at io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:372) at io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:86) at org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.launch(KubernetesLauncher.java:132) at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:294) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

       

      Plugin version: 1.29.7

      Pod settings:  

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            pawel_21 Pawel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: