<p>We currently have around 20 jobs. These jobs create one pod each, but we want to make sure that only one of these pods can run at a time, keeping the rest of them in pending status. Increasing the resource limitations makes them to run one by one but I want to be sure that this is always the behaviour.</p>

<p>Is there any way of limiting this concurrency to 1, let's say per label or something similar?</p>

<p>Use <a href="https://kubernetes.io/docs/tasks/administer-cluster/quota-pod-namespace/" rel="nofollow noreferrer">ResourceQuota</a> resource:</p>

<pre><code>apiVersion: v1
kind: ResourceQuota
metadata:
  name: pod-demo
spec:
  hard:
    pods: "5"
</code></pre>
