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

kubernetes plugin, 'sh' hanging with container bitnami/kubectl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • kubernetes-ci-plugin
    • None
    • Jenkins 2.346.1
      Kubernetes plugin: 3670.v6ca_059233222
      Kubernetes server is 1.24.1

      Regarding plugin:  https://plugins.jenkins.io/kubernetes/, version 3670.v6ca_059233222

      A pipeline exists working perfectly with two containers, after adding a third the pipeline hangs.  In the kubernetes plugin documentation it speaks about the hanging issue and provides a solution to add 'securityContext' setting the runAsUser to 1000, say it fixes the issue in most cases.

      In my case I have not been able to get past the hang.  The issue occurs with container 'bitnami/kubectl'.

      I can build the pod defined in the yaml manually and access all the containers using 'kubectl exec ...' and they all work, and so I don't understand why the pipeline is failing.

      (see attached Jenkinsfile)

            gsanchezu Guillermo Sanchez Urien
            lknite leland knight
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: