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 →
- Separate clusters per environment at minimum (prod never shares a cluster with dev).
- 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
- Dedicated clusters when there are hard requirements: compliance scope (PCI), very different upgrade cadences, noisy workloads like GPU training, or untrusted tenants (customer code).
- 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.
More on Multi-env and multi-account
Design the AWS account structure for a 50-engineer startup that's growing fast.IntermediateHow do you promote the same build from dev to staging to prod?BeginnerBugs keep passing staging and appearing in production. How do you make staging closer to prod?IntermediateHow do you structure Terraform for dev, staging and prod? Workspaces, directories or Terragrunt?IntermediateDevelopers want a preview environment for every pull request. How would you build it?AdvancedHelm values files or Kustomize overlays for per-environment config?Beginner