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

Default slave labels are missing in kubernetes-plugin

    Details

    • Similar Issues:

      Description

      Default labels for jenkins slave are missing in kubernetes-plugin.

      Without default labels for jenkins slave we cannot create generic NetworkPolicy in Kubernetes to secure communication between slave and master.  

      We don't want to specify labels in podTemplate because we do not own pipelines code.

       

      Would be nice to have following labels in every jenkins slave Pod by default. 

      labels:
       jenkins: slave

      Related commits:

      https://github.com/jenkinsci/kubernetes-plugin/commit/fd855a9fe6bb7101a3fc3aa73b11a26db25d2642#diff-14316beac1f1489a56a52e21cf8e0ee6R368

       

      Current fix:

      We downgraded kubernetes-plugin to 1.1.2 version and following labels are present:

       

      labels:
       jenkins: slave 
      

       

        Attachments

          Issue Links

            Activity

            Hide
            antoniaklja Bartek Antoniak added a comment -

            any progress here?

            Show
            antoniaklja Bartek Antoniak added a comment - any progress here?

              People

              • Assignee:
                csanchez Carlos Sanchez
                Reporter:
                antoniaklja Bartek Antoniak
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: