Video in progress
One shared Kubernetes cluster or a separate cluster per team: how do you decide?
A shared cluster is cheap in resources and operations, but isolation rests on namespaces, RBAC, quotas and network policy. Separate clusters give strong isolation, but each needs upgrades and monitoring. Often the middle is chosen: several shared clusters split by environment and risk level.
📖 Answer
I frame the question not as "by team" but as "what do we need to isolate".
The cost of a shared (multi-tenant) cluster:
- noisy neighbor: one team's wrong requests or a log storm affects the others;
- blast radius: a cluster upgrade or a control plane problem touches everyone;
- security: a container escape or wrong RBAC opens a way to another team's secrets;
- CRDs and operators are cluster-wide, so the operator version one team needs may conflict with another's.
The cost of a cluster per team:
- 20 clusters means 20 upgrades, 20 monitoring setups, 20 ingresses, each with its own control plane and spare capacity;
- if the platform team is small, the clusters go stale, and that is itself a security problem.
The model that usually works:
- prod and non-prod in separate clusters: almost always;
- high-requirement workloads (PCI, personal data, payments): a separate cluster;
- the other teams in a shared cluster, but with strict defaults: a namespace per team/service, ResourceQuota, LimitRange, a default-deny NetworkPolicy, Pod Security Standards (
restricted), RBAC limited to the namespace; - as the number of clusters grows, manage them as code (Terraform, Cluster API) and keep them in a consistent state with GitOps.
The decision point is often regulation and security requirements, not technical convenience. If an audit says "the payment system must be separated from other workloads", find out with the auditor in advance whether a namespace is enough.
Sign up to mark studied questions and save your progress.