How do you enforce guardrails with ResourceQuota, LimitRange and policy together?
IntermediateProductionCluster Design & Multi-Tenancy
Answer
Quota caps a team's total, LimitRange fills in defaults so nothing runs without requests, and policy (Kyverno/VAP) rejects Pods with no limits-or-requests, latest tags, missing probes or missing labels. Quota is how we make costs a team-level decision rather than a platform-level surprise.
apiVersion: v1
kind: LimitRange
metadata: { name: defaults }
spec:
limits:
- type: Container
default: { memory: 512Mi }
defaultRequest: { cpu: 100m, memory: 128Mi }
More on Cluster Design & Multi-Tenancy
How many clusters should a company run, and how do you decide?BeginnerNamespace per environment or per team: which do you pick?BeginnerWhat namespace conventions and labels do you standardize on?BeginnerWhy should you never run workloads on the control plane nodes?BeginnerWhat is the minimum HA setup for a self-managed control plane?BeginnerWhat goes in a "cluster baseline" before apps are deployed?Beginner