Jenkins kubernetes plugin using 2 podTemplates according to job use case

734 views Asked by At

I have 2 podTemplates inside my kubernetes cloud plugin but I fail to understand how to tag my pipeline jobs to use the second podTemplate. It just keeps using the first one I configured as a default.

My use case is this - I want to tag several jobs to run on a different k8s node group. Already tried using a label as their docs say but it just doesn't work.

I have 2 pod templates, both configured with container names which are different.

0

There are 0 answers