Interview Prep/Jenkins/Platform: plugins, JCasC & Kubernetes agents

How do you prevent one team's builds from using all agent capacity in a shared Kubernetes cluster?

IntermediateScenarioPlatform: plugins, JCasC & Kubernetes agents
Answer

Situation read → Fairness and isolation across teams.

What I'd do →

  1. Separate agent namespaces per team with ResourceQuota and LimitRange.
  2. A kubernetes cloud per namespace (or per team controller) with its own concurrency limit.
  3. Enforce resource requests in pod templates so scheduling is predictable.
  4. Monitor queue time per team.

Why → Quotas cap usage at the cluster level, regardless of what Jenkins requests.

Interview tip → Mention priority classes for release builds over PR builds.

All Jenkins questions Roadmap: Jenkins

More on Platform: plugins, JCasC & Kubernetes agents