From 8935aa18b77609134b162533b6507453c38090e6 Mon Sep 17 00:00:00 2001 From: Michel Rouly Date: Fri, 14 Aug 2026 13:19:43 -0700 Subject: [PATCH] highlight the nodeSelector doesn't work by default --- .../10-configuration/11-backends/20-kubernetes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/30-administration/10-configuration/11-backends/20-kubernetes.md b/docs/docs/30-administration/10-configuration/11-backends/20-kubernetes.md index ec5f8d27fd2..d8e48e0cbc3 100644 --- a/docs/docs/30-administration/10-configuration/11-backends/20-kubernetes.md +++ b/docs/docs/30-administration/10-configuration/11-backends/20-kubernetes.md @@ -158,6 +158,8 @@ And then overwrite the `nodeSelector` in the `backend_options` section of the st You can use [WOODPECKER_BACKEND_K8S_POD_NODE_SELECTOR](#backend_k8s_pod_node_selector) if you want to set the node selector per Agent or [PodNodeSelector](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#podnodeselector) admission controller if you want to set the node selector by per-namespace basis. +By default, setting `nodeSelector` from a step's backend options is **not allowed**, as it would otherwise let any user with push access pin pipeline pods onto chosen nodes. To enable it, set [`WOODPECKER_BACKEND_K8S_POD_NODE_SELECTOR_ALLOW_FROM_STEP`](#backend_k8s_pod_node_selector_allow_from_step) on the agent. + ### Tolerations When you use `nodeSelector` and the node pool is configured with Taints, you need to specify the Tolerations. Tolerations allow the scheduler to schedule Pods with matching taints.