Configuring nodeSelector globally #3367
-
I have nodes on which no build workload should be scheduled. I couldn't find any way to globally configure pods. I can set the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You can't via Woodpecker now.
Doesn't it work if you define clone step explicitly? |
Beta Was this translation helpful? Give feedback.
-
Alternatively, you could use https://woodpecker-ci.org/docs/administration/backends/kubernetes#woodpecker_backend_k8s_pod_labels and define some anti-toleration or affinity to prevent WP pods from getting scheduled on some nodes. |
Beta Was this translation helpful? Give feedback.
But you can set up admission controller on namespace.