Interview Prep/Real-World Interview/Multi-env and multi-account

Multi-tenant cluster with namespaces per team, or one cluster per team or environment?

AdvancedScenarioMulti-env and multi-account
Answer

Situation read → It's a trade-off between isolation and operational cost. Namespaces are soft isolation; clusters are hard isolation but multiply upgrades and add-ons.

What I'd do →

  1. Separate clusters per environment at minimum (prod never shares a cluster with dev).
  2. Namespaces per team inside an environment when teams trust each other, with:
    • ResourceQuota and LimitRange per namespace
    • NetworkPolicy default deny
    • RBAC per team, Pod Security restricted
    • IRSA or Pod Identity so cloud permissions are per workload
  3. Dedicated clusters when there are hard requirements: compliance scope (PCI), very different upgrade cadences, noisy workloads like GPU training, or untrusted tenants (customer code).
  4. Run many clusters with the same Terraform module and Argo CD ApplicationSets so the cost of each extra cluster stays low.

Why → Namespaces don't isolate the kernel or control plane; when a breach or noisy neighbour would be unacceptable, use a cluster boundary.

Interview tip → Name the criteria (compliance, trust, noisy neighbours, upgrade cadence) rather than giving one fixed answer.

All Real-World Interview questions Roadmap: Interview readiness

More on Multi-env and multi-account