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

Default slave labels are missing in kubernetes-plugin

XMLWordPrintable

      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 
      

       

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

              Created:
              Updated:
              Resolved: