Details

    • Similar Issues:

      Description

      It would be great to have the ability to set tolerations on the pods created by the Kubernetes plugin (https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ ).  Tolerations are necessary (in addition to the node selector) to be able to place slave pods on a dedicated set of build nodes, completely separate to other cluster workload.

        Attachments

          Issue Links

            Activity

            Hide
            jordanjennings Jordan Jennings added a comment -

            As a workaround, you can use the PodNodeSelector and PodTolerationRestriction admission controllers to force pods in your "jenkins" namespace to schedule to nodes tainted and labeled for Jenkins. Works well for me for now, but hoping to see it addressed in the plugin.

            Show
            jordanjennings Jordan Jennings added a comment - As a workaround, you can use the PodNodeSelector and PodTolerationRestriction admission controllers to force pods in your "jenkins" namespace to schedule to nodes tainted and labeled for Jenkins. Works well for me for now, but hoping to see it addressed in the plugin.
            Hide
            csanchez Carlos Sanchez added a comment -
            Show
            csanchez Carlos Sanchez added a comment - will be handled by https://github.com/jenkinsci/kubernetes-plugin/pull/275
            Hide
            csanchez Carlos Sanchez added a comment -

            JENKINS-50282 has been merged, it should be possible using the new yaml option to define pod templates
            please give it a try

            Show
            csanchez Carlos Sanchez added a comment - JENKINS-50282 has been merged, it should be possible using the new yaml option to define pod templates please give it a try

              People

              • Assignee:
                csanchez Carlos Sanchez
                Reporter:
                jim_minter Jim Minter
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: