Interview Prep/Kubernetes/Cluster Design & Multi-Tenancy

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 }
All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Cluster Design & Multi-Tenancy