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

Unable to override image via declarative pipeline for pod template

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • Jenkins 2.387.3
      kubernetes plugin 3651.v908e7db_10d06

      We are having image defined as nexus:4000/ci-slave:2.6.3 in podtemplate.

      via declarative pipeline i am passing below config as yaml:

      apiVersion: v1
      kind: Pod
      spec:
          containers:
          - image: "nexus:4000/ci-slave:2.3.1"
            name:  'jnlp'
            resources:
              limits:
                cpu: '1'
                memory: 1Gi
              requests:
                cpu: 10m
                memory: 50Mi

       

      It is provisioning new pod with changed cpu and memory but image 2.3.1 is not reflecting. the pod spinned is still coming with 2.6.3

      The documentation says that image can be over ridden

      [Kubernetes | Jenkins plugin|https://plugins.jenkins.io/kubernetes/]

      search for text"  we will inherit from a pod template we created previously, and will just override the version of maven so that it uses jdk-11 instead:"

            kylecronin Kyle Cronin
            shub_maheshwari Shubham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: