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

How do you limit the number of concurrent agent pods?

BeginnerConceptPlugins, JCasC & Jenkins on Kubernetes
Answer

Set Concurrency Limit on the cloud (containerCapStr in JCasC) and per pod template (instanceCap). Back it with a Kubernetes ResourceQuota on the agent namespace so the cluster enforces limits even if Jenkins misbehaves. Excess builds wait in the Jenkins queue rather than flooding the scheduler with pending pods.

All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Jenkins on Kubernetes