Where should agent pods run relative to the controller?
AdvancedConceptPlugins, JCasC & Jenkins on Kubernetes
Answer
In a separate namespace (e.g. jenkins-agents) with its own ResourceQuota, LimitRange and NetworkPolicies, ideally on a dedicated node pool (taints and tolerations) so builds cannot starve the controller or production workloads. For strong isolation (untrusted PR builds, privileged builders), use a separate cluster. Never run build pods in the same namespace as production applications, because a compromised build could reach their secrets.
More on Plugins, JCasC & Jenkins on Kubernetes
How do you manage plugins in a reproducible way?IntermediateWhat does `jenkins-plugin-cli` resolve for you, and what flags matter?IntermediateWhy should you keep the number of plugins low?BeginnerWhat is JCasC and how is it loaded?BeginnerWhat are the top-level root elements in a JCasC file?IntermediateHow do you inject secrets into JCasC without committing them?Advanced