title: What is Kubernetes max available cpu/mem resourceQuota for a namespace?
body: <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>