<p>Is Kubernetes max available cpu/mem resourceQuota for a namespace the total of #cpu across all nodes in the cluster or per node? i.e if I have 4 nodes each with <strong>cpu=10 and mem=100Gi</strong>, to set 50% resources to the namespace, would that be limits.cpu: "20" (4*10/2) or "5" (10 per node/2). I'm using statefulsets w/label+namespace for node selection so that pods are specifically deployed to use only these 4 nodes. I think it would have to be the latter, so:
    <strong>limits.cpu: "5"
    limits.memory: 50Gi</strong>
would allow each node in that namespace to use <strong>50% of the resources</strong>. One reason I ask is it may not always be true that each node has the same number cpu/memory, i.e. 50% resources on one node may not be 50% on another node - in my cluster they are the same, but I can see where that might not be the case.</p>

bladerunner512
<p>it's the sum of CPU of all worker nodes   </p>

<p><a href="https://i.stack.imgur.com/w0yAj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w0yAj.png" alt="enter image description here"></a></p>

<p>Source: <a href="https://kubernetes.io/docs/concepts/policy/resource-quotas/#compute-resource-quota" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/policy/resource-quotas/#compute-resource-quota</a></p>

<p>If Pods in Running state exceeds that amount k8s fails to schedule the Pods because there aren't nodes available to fulfill the request </p>
