Namespace or cluster per team: which Kubernetes tenancy model fits your teams
Most teams can start with shared namespaces, but only if they know exactly what Kubernetes isolates and what it leaves to you. The choice between namespaces, virtual control planes and dedicated clusters decides how far one team's mistakes, credentials and resource demands can reach, and it sets the operating effort you take on. Kubernetes gives you a scoping unit, the namespace, and several controls that work inside it: RBAC roles and bindings that decide who can act on which objects, ResourceQuota and LimitRange for consumption, Pod Security Admission that enforces one of three Pod Security Standards per namespace, and NetworkPolicy objects that restrict pod traffic, provided your CNI plugin enforces them. These controls limit accidental interference well. They do not make a namespace a security boundary against a determined tenant, because all tenants still share one API server, one etcd datastore, one set of nodes and one kernel on each node.
The gaps matter most in three places. Cluster-scoped objects such as CustomResourceDefinitions, StorageClasses, PriorityClasses and admission webhooks are visible to every tenant and cannot be owned by a namespace. Secrets are stored unencrypted in etcd by default, so anyone who can read etcd or list Secrets broadly can reach other teams' data unless you configure encryption at rest and least-privilege access. Nodes are shared, so a privileged pod or a kernel exploit crosses namespace lines. Before you choose a model, confirm with your CNI vendor that its NetworkPolicy enforcement behaves as you expect, list the cluster-scoped resources each team would need to install, and decide whether a tenant could ever run privileged workloads.
A practical first step is to write down the threat you are isolating against. Accidental resource exhaustion and noisy neighbors are handled well by quotas and namespaces. Credential misuse between internal teams is handled by RBAC and scoped identity. Hostile or untrusted tenants, including customers running their own code, usually need separate clusters or at minimum strong node isolation, and that conclusion should come from a formal risk review rather than from preference. Ask your security team which of your regulatory or contractual obligations require separation of data or administrative access, and whether they accept shared control planes for each class of workload. The namespace-based controls described in the sibling topics on RBAC and quotas are a good baseline, and the CIS Kubernetes Benchmark gives your hardening reviewers a shared reference for checking what you configure.
Four tenancy models and what each one isolates
Each Kubernetes tenancy model draws the isolation line in a different place: the API, the control plane, the nodes or the network. The cards below set out what each model separates, where it leaves shared components exposed and how much day-two work it adds to your platform team.
Shared namespaces with RBAC and quotas
Teams share one cluster and one API server, and each team gets namespaces bound by RBAC, ResourceQuota and network policies. The API boundary is enforced by authorization rules, not by separate servers, so cluster-scoped objects such as CRDs, admission webhooks and node access stay shared. Check who can create namespaces, whether network policies are enforced by your CNI plugin, and how Pod Security Admission levels are set per namespace.
Pod Security StandardsVirtual control planes
A virtual cluster gives each tenant its own API server and control plane running inside a shared host cluster, while pods still run on the host nodes. This separates tenant API objects and tenant-level admin rights more cleanly than namespaces, but the workloads still share host nodes and the host network. Ask how the tenant control plane is upgraded, where its data is stored and which resources are synced to the host.
Namespace grouping with tenant tools
Tenant tooling such as Capsule groups several namespaces under one tenant object, so a tenant owner can create namespaces within policy limits. Quotas, network rules and replicated resources are applied per tenant rather than per namespace by hand. The isolation boundary is still the shared API server and shared nodes, so the tool reduces administrative toil without adding a control plane boundary. Confirm which admission and proxy components you must run and how they are upgraded with the cluster.
Dedicated clusters per team
Each team or customer runs its own cluster with its own API server, etcd, nodes and network. This gives the strongest boundary of the four models, covering control plane, node and network isolation, and it lets each tenant pick its own Kubernetes minor version. The cost is repeated operations: each cluster needs its own upgrades, etcd backups, certificates, monitoring and identity setup. Ask your platform team how many clusters it can operate with its current staffing and tooling.
Version skew policyChoosing a model by boundary
Start from the boundary you must demonstrate, not from the tool you prefer. Shared namespaces suit internal teams that trust each other, virtual control planes suit tenants who need their own admin rights, and dedicated clusters suit customers or regulated workloads that need node and network separation. Write down which boundary each tenant requires and the operating burden you accept for each extra layer, then confirm the choice with your security and compliance teams before building.
Which tenancy model fits which situation
This table compares namespaces with RBAC, namespaces with a tenant controller, virtual control planes and dedicated clusters across isolation, upgrades, idle capacity and operating load. Read each row against your trust level, compliance scope and tenant count, because the right model changes as those inputs change.
| Factor | Shared namespaces with RBAC and policies | Virtual control planes per tenant | Dedicated cluster per tenant |
|---|---|---|---|
| Isolation strength | Weakest: tenants share the kernel, nodes and API server, so isolation depends on RBAC, network policies, quotas and Pod Security Admission being correct | Stronger API separation, but tenants still share host nodes and the host cluster's kernel and runtime | Strongest: no shared API server, nodes or network, so a compromise is bounded to one tenant |
| API separation | None: every tenant uses the same API server and cluster-scoped objects such as CRDs and admission webhooks | Each tenant gets its own API server and control plane objects, with cluster-scoped resources isolated per tenant | Full: each tenant controls its own API server, CRDs, admission configuration and RBAC |
| Upgrade coupling | Tight: one cluster version and one set of CRDs serve all tenants, so every team waits on the same upgrade | Looser: each tenant control plane can be versioned separately, while the host cluster is still upgraded once | Loose: each cluster upgrades on its own schedule, at the cost of more upgrade runs |
| Cost of idle capacity | Lowest: tenants share spare capacity, and quotas limit how much one team can reserve | Low to moderate: tenant control planes add small overhead, and workloads still share host nodes | Highest: each cluster carries its own control plane, node pools and spare headroom |
| Operating overhead | Lowest per tenant, but policy, quota and namespace drift needs continuous review as tenants grow | Moderate: the platform team operates the host cluster plus a tenant control plane lifecycle | Highest: every cluster needs monitoring, backups, certificates, upgrades and access reviews |
| Fit for internal teams | Usually a good fit when teams are trusted and share ownership of the platform | Works well when teams need different CRDs or versions but a shared platform budget | Usually more than internal teams need, unless a team has its own compliance boundary |
| Fit for external customers | Only with strong controls and a low trust assumption; a shared kernel and control plane is hard to defend for hostile tenants | Reasonable for many customers when API isolation matters but dedicated nodes are not required | Preferred when contracts, regulators or customers require hard isolation or separate data boundaries |
| Key question to confirm | Do tenants ever run untrusted code or privileged workloads, and can each team's policies be enforced automatically? | Do tenants need their own CRDs, API versions or admin rights, and can the host be upgraded without tenant downtime? | Which compliance scope or contract clause requires separate clusters, and who will run each cluster after handover? |
Where Kubernetes isolation stops at the namespace
A namespace scopes names, RBAC bindings and ResourceQuota objects, but it does not create a security boundary around the workloads inside it. Pods from every namespace share the same worker nodes, the same kernel, and the same kube-apiserver and etcd. Cluster-scoped objects such as CustomResourceDefinitions, StorageClasses, PriorityClasses, ClusterRoles and admission webhook configurations sit outside any namespace, so a team that can change them can affect every tenant. Before choosing a shared model, list which cluster-scoped resources each team could create or modify, and decide who owns them. A container escape or a node-level compromise reaches every namespace scheduled on that node, which is the main reason regulated teams with strict separation requirements often look at dedicated clusters.
Pod Security Standards are the main workload control that namespaces can enforce. The Privileged, Baseline and Restricted profiles are applied per namespace by the built-in Pod Security Admission controller, using namespace labels that set enforce, audit and warn modes. Confirm that every tenant namespace carries a label set you have tested, and that teams cannot remove those labels, because a namespace owner with edit rights can otherwise weaken its own policy. Pod Security Admission checks pod specifications at admission time, so it does not replace policy on RBAC, network paths or image sources.
Secrets deserve the same attention in any shared model. Kubernetes stores Secrets unencrypted in etcd by default, so anyone who can read the etcd data directory or a backup of it can read every tenant's credentials. Before onboarding a second team, confirm that encryption at rest is configured for Secrets on the API server, that etcd snapshots are protected to the same standard, and that list and watch permissions on Secrets are limited to the identities that need them. The Secrets Store CSI Driver is one option if credentials must live in an external store. Treat these checks as preconditions for any tenancy model, because they hold whether tenants share a cluster or not.
Decision path from tenant type to tenancy model
The decision starts with who the tenants are, internal teams or external customers, because that sets how much trust separates them. Next comes compliance scope: if regulators or contracts require hard separation, the path leads toward dedicated clusters. If tenants need their own API server or CRDs, the path points to virtual control planes. Otherwise, namespaces with RBAC, quotas and network policies are usually the first option to test. Check each branch against your own isolation requirements before committing.
Decision path from tenant type and compliance scope to a tenancy model.
Designing the tenancy model before you build it
This sequence turns a vague request for team or customer isolation into a written tenancy design with verified boundaries, so the cluster layout is chosen on purpose rather than by default.
List tenants and their trust levels
The platform owner lists every team or customer that will share infrastructure, the workloads each runs, and how much each one trusts the others. Internal teams that share a product and customers who are strangers to each other sit at very different points on that scale. Mark which tenants handle regulated data, which need admin rights on their own resources, and which must never see another tenant's traffic. The output is a short register that every later step refers back to. Confirm the register with the tenant owners before moving on, because an isolation decision made without it usually has to be reversed later.
Define the isolation boundary each tenant needs
For each tenant, decide what it must be kept away from: other tenants' Secrets, the node pool, the Kubernetes API itself, cluster-scoped objects such as CustomResourceDefinitions, or only network paths. This choice points toward a shared namespace, a virtual control plane, or a separate cluster. Record the boundary as a sentence per tenant, for example: an illustrative tenant that needs its own API server and its own CRDs points away from plain namespaces. The output is a boundary statement signed off by the security owner.
Map identity groups to RBAC roles
Identify which groups from your identity provider will act in each tenant, then bind them to namespace-scoped Roles rather than cluster-wide ones. Keep the set of verbs narrow and avoid wildcards, and reserve cluster-admin and system:masters for break-glass use. Confirm how your authentication method delivers group claims to the API server, since that determines whether groups can be mapped at all. Check the result by impersonating a tenant user and listing resources in a neighboring namespace. The check passes only when the request is refused. Keep the binding file under version control so reviews can compare it against the register.
Set quotas and LimitRange defaults
Create a ResourceQuota for each tenant namespace covering CPU, memory, storage and object counts, and a LimitRange that supplies default requests and limits for pods that omit them. Without defaults, a quota can block a deployment that has no explicit resource settings, so test both paths. Ask the platform team how many tenants share each node pool and whether priority classes need their own quota scope. The check is a deliberately oversized test pod, which should be rejected by the quota, and a pod with no resource block, which should receive the default values.
Apply Pod Security Standards per namespace
Label each tenant namespace for Pod Security Admission at the level the workloads can meet. Kubernetes defines Privileged, Baseline and Restricted levels, and the enforce mode blocks non-conforming pods at admission. Start with warn and audit modes on existing namespaces to find workloads that would break, then move to enforce once the owners have fixed them. The check is an attempt to create a privileged pod in a Restricted namespace, which must be rejected with a clear admission message. Record the chosen level per tenant in the register.
Add network policies and encryption at rest
Write a default-deny ingress and egress policy in each tenant namespace, then add explicit allow rules for the traffic each tenant needs, including DNS and any shared ingress. Confirm that your CNI plugin enforces NetworkPolicy, because a policy object that is not enforced gives false assurance. Separately, verify that encryption at rest is configured for Secrets in etcd, since they are stored unencrypted by default, and restrict list and watch access on Secrets to least-privilege roles. The check is a connection attempt from one tenant pod to another tenant's service, which must time out, and a read of a Secret object from a tenant identity, which must be denied.
Test the boundary from inside a tenant
Run an adversarial check as a tenant user before accepting the design. Attempt to list another tenant's Secrets, read its ConfigMaps, create pods that mount host paths, escalate by creating RoleBindings, and reach its services. Repeat the same checks after every change to RBAC, quotas or policies, because a later edit can silently widen access. Record each attempt, the expected result and the actual result in the register. This step produces the evidence that the boundary holds and gives reviewers something concrete to examine.
Decide on a host cluster or dedicated clusters
Compare the tested design against the boundary statements from the second step. If namespaces and policies meet every boundary, a shared cluster is a reasonable choice. If a tenant needs its own API server or CRDs, consider a virtual control plane on a shared host. If a tenant needs node-level isolation, compliance scope separation or independent upgrade timing, a dedicated cluster may be the answer. Ask any vendor or partner to quote the recurring cost of each option, including control plane nodes, etcd backups, monitoring and upgrade effort, and confirm which of these costs your team would carry. The output is a recorded decision with the reasons for it.
Questions teams ask before choosing a tenancy model
Are Kubernetes namespaces enough to isolate customers?
Namespaces are often enough for internal teams that trust each other, but they are a weaker boundary for untrusted customers. A namespace isolates API objects and can be combined with RBAC, ResourceQuota, network policies and Pod Security Admission, yet all tenants still share the API server, the nodes and the kernel. Whether that is acceptable depends on your threat model, your contracts and what your auditors expect. Before deciding, list what a tenant could do if it escaped its namespace, then test the controls you rely on. The Pod Security Standards page is a useful starting point for the workload side of that review.
What does a dedicated cluster cost to run, and who pays for it?
Cost has four parts: infrastructure for control plane and worker nodes, licensing or support if you use a commercial distribution, staff time to operate each cluster, and the overhead of upgrades and monitoring repeated per cluster. Infrastructure and operations costs recur every month, while design and initial build are one-time. Each extra cluster adds a full control plane, so a clean three-node control plane per cluster is a fixed cost before any workload runs. Ask any partner or vendor for a quote that separates one-time work from recurring run costs, lists the number of clusters and nodes assumed, and states who patches and backs up etcd. The kubeadm high availability guide describes the control plane shape that drives much of this cost.
How long does it take to change the tenancy model later?
The duration depends on how many tenants move, how much state they hold and how tightly their workloads depend on current names, network paths and secrets. Moving a team from a shared namespace to its own namespace is usually a small change, while moving tenants into separate clusters means new clusters, data migration, DNS changes and cutover planning. No duration is fixed by the platform, so ask for a plan with dependencies and a rollback step for each tenant before accepting a schedule. Your own team should be ready to own the new boundary, its quotas and its access rules from the first day.
What does a tenancy model change need from our team?
A change needs an owner for tenant onboarding, someone who understands RBAC and network policy, and an operator who can run upgrades and etcd backups for any new cluster. Expect work on identity mapping, so that each team's groups map to the right roles, and on secrets, because Kubernetes stores Secrets unencrypted in etcd by default and encryption at rest must be configured. Plan for a test environment that matches production boundaries. Teams without this skill set should ask a partner to document the design and train the operators before the cutover.
Can our platform team design the tenancy model internally?
Yes, many platform teams design namespace-based tenancy internally, especially when tenants are internal and the controls are simple. Internal design becomes harder when tenants are external, when you need separate upgrade schedules per tenant or when auditors will ask for evidence of isolation. A useful internal check is whether your team can explain, test and reproduce the boundary without relying on one engineer. If the answer is no, an external review of the design, plus a test of the isolation controls, is a common middle option. DeployOpen can scope that work as a fixed-scope engagement with written deliverables.
Which Kubernetes version and support window should drive the choice?
Your tenancy model affects upgrade work, because every dedicated cluster must be upgraded on its own schedule. Kubernetes releases come roughly three times per year on a cycle of about 14 weeks, and the project maintains the three most recent minor releases. Each cluster must follow the version skew rules, which require the kube-apiserver to be upgraded one minor version at a time. More clusters mean more upgrade runs, so count them when comparing models. The Kubernetes release page lists current support dates to check against your plan.
How do we revisit the tenancy model after it goes live?
Review the model on a schedule and whenever a tenant's risk, size or contract changes. Check the RBAC bindings, quotas, network policies and Secrets access, and confirm that tenant groups still map correctly to identities. Track cost per tenant so that a shared model does not hide a noisy neighbor, and track upgrade effort so that a dedicated model does not quietly grow beyond your team's capacity. Keep the design in version control with the reasons for each boundary, so the next review starts from evidence. Ask for this review plan in any engagement scope.
Security and operational risks in shared and dedicated models
Every tenancy model moves risk somewhere: shared clusters concentrate blast radius and cross-tenant leakage, while dedicated clusters multiply patching, audit and access work. The cards below name the risks that recur in both models, so you can decide which controls you must build and which you can accept.
Cluster-scoped resources leak across tenants
Namespaces do not contain cluster-scoped objects such as ClusterRoles, ClusterRoleBindings, StorageClasses, PersistentVolumes, IngressClasses and CustomResourceDefinitions. A team with permission to create or modify one of these can affect every tenant on the cluster. Inventory which cluster-scoped kinds each tenant can reach, and confirm with your RBAC review that no tenant role grants write access to them.
Privileged pods break namespace isolation
A pod running privileged, with host networking, host paths or extra Linux capabilities can read other workloads on the same node and reach the node itself. Pod Security Admission enforces the Privileged, Baseline and Restricted standards per namespace, so label each tenant namespace with the level it needs and confirm that no tenant can relabel its own namespace. Check the setting in your cluster rather than assuming the default applies.
Pod Security StandardsCRD version and schema conflicts
CustomResourceDefinitions are cluster-wide, so two teams that install different versions of the same operator or CRD can break each other's resources. An upgrade by one tenant can change the schema that another tenant's objects depend on. Decide who owns CRD installation, keep a single approved version per CRD, and test operator upgrades against every tenant's workloads before rollout.
Shared ingress and DNS exposure
A shared ingress controller, load balancer and DNS zone mean one misconfigured Ingress can take over a hostname or route traffic meant for another team. Wildcard hosts, overlapping paths and unreviewed annotations are the usual sources of trouble. Confirm which teams may claim which hostnames, how TLS certificates are issued per tenant, and how route changes are reviewed.
Noisy neighbours and shared control plane load
Without ResourceQuota, LimitRange and priority classes, one workload can starve others of CPU, memory, storage or API server capacity. Heavy list and watch traffic from controllers or CI jobs can slow the API server for every tenant. Measure request rates and quota use per tenant before consolidating, and ask whether dedicated clusters or a virtual control plane are needed for tenants with unpredictable load.
Audit logging across tenants
A shared cluster produces one audit stream that mixes events from every tenant, so each team's activity must be attributable, retained and searchable separately. Dedicated clusters multiply audit pipelines, retention settings and access reviews. Confirm where audit policy is defined, who can change it, how long logs are kept, and whether tenant administrators can read or suppress other tenants' events.
Break-glass access through system:masters
The system:masters group bypasses RBAC, and any certificate or token that carries it has full cluster control. In both models, the kubeadm admin kubeconfig and group-based bindings to this group are common ways it spreads. Keep one tightly controlled break-glass credential, store it outside daily tooling, log its use, and verify that no tenant role or identity provider group mapping grants it.
Benchmark-based configuration review
The CIS Kubernetes Benchmark is a consensus secure configuration guide covering upstream Kubernetes and several managed services. Use it as a checklist for API server flags, kubelet settings, RBAC and network controls in each tenancy model, and map the results to your own tenant design. Treat every recommendation as something to confirm in your own environment, since the benchmark does not know which tenants you run or what your policy requires.
CIS Kubernetes BenchmarkHow DeployOpen works on this
DeployOpen starts with the isolation requirements each team or customer must meet, then designs the tenancy model in your own clusters and infrastructure. The result is a written design, a working build and handover material your platform and security teams can review and run.
How we scope
- Inventory which teams or customers need isolation, and from what: API access, workloads, network paths, secrets or compute.
- Record the agreed model per tenant class (shared namespace, virtual control plane or dedicated cluster) in the written scope.
- Confirm how many clusters, which identity provider and which compliance controls the design must support before work starts.
How we build
- Build RBAC roles, namespace layout, ResourceQuota, LimitRange and network policies for the chosen model.
- Apply Pod Security Admission levels per namespace and test that privileged workloads are blocked for each tenant.
- Where a virtual control plane or separate cluster is chosen, build and test the host, tenant provisioning and upgrade process.
How we hand over
- Deliver a tenancy design document covering boundaries, owners, quotas, exceptions and the reasons for each decision.
- Provide isolation test results, including cross-tenant access attempts, with the fixes and a retest record.
- Train platform and team owners on onboarding a new tenant, changing quotas and reviewing bindings on a schedule you set.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for tenancy changes after handover.
- Review tenancy as Kubernetes versions change, including upgrades of virtual control planes or tenant clusters.
- Ask any provider to confirm in writing which controls they test, which they document and which remain your team's responsibility.

