Interview Prep/Jenkins/Plugins, JCasC & Jenkins on Kubernetes

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.

All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Jenkins on Kubernetes