Resource governance
ResourceQuotas, LimitRanges, PriorityClasses, noisy-neighbor containment, cost attribution per namespace (OpenCost/Kubecost). Fairness is a feature you build.
The mental model
An apartment building shares one electrical supply, one water main, one boiler. Left ungoverned, the tenant who runs a crypto rig in the basement browns out everyone else's lights. So the building does three things: it meters each unit (you pay for what you draw), it caps each unit (a breaker trips before one flat pulls the whole panel down), and it prioritises critical loads (the fire pump never gets shed, the hallway vending machine gets shed first). Nobody negotiates the boiler by hand — the building's wiring makes fairness automatic.
Resource governance in a multi-tenant cluster is that wiring. A cluster has a finite pool of CPU, memory, and node capacity, and twenty teams drawing on it. Without governance, the first team to deploy a 200-replica job with no limits starves everyone else — the Kubernetes version of the crypto rig. ResourceQuota is the per-unit breaker (a namespace cannot exceed its slice). LimitRange is the default wiring gauge (every pod gets sane requests/limits even when a developer forgets to set them). PriorityClass is the load-shedding order (which pods get evicted first when the building is over capacity). And cost attribution (OpenCost/Kubecost) is the meter that turns shared consumption into a per-tenant bill.
The idea to carry into every platform interview: fairness is a feature you build, not a property you get. Kubernetes defaults to a free-for-all where the greediest workload wins. Governance is the deliberate engineering that makes the cluster fair under contention — and the honest version of it is measured, capped, and billed, so a team feels the cost of what it asks for.
- Deep dive
- Internal architecture
- Real-world use cases
- Best practices
- Common mistakes
- Performance
- Security
- Production troubleshooting
- Advantages & disadvantages
- Alternatives
- Interview expectations
- Interview questions
- Facts to remember
- Cheat sheet
- Quick revision