< BLOG HOME

A Practical Guide to Kubernetes Multi-Tenancy: Best Practices and Approaches

Larkin Jainschigg - June 09, 2026
Isometric illustration of glowing office cubicles with Kubernetes logos, representing multi-tenant isolation

Kubernetes multi-tenancy is the practice of running multiple teams, workloads, or customers on the same infrastructure — sharing compute, networking, and storage — while using policy, access controls, and isolation boundaries to keep them separate. For cloud service providers building shared infrastructure on bare metal, and for enterprises running private clouds for internal teams, getting multi-tenancy right is the difference between efficient, trustworthy infrastructure and a security incident waiting to happen.

This guide covers Kubernetes multi-tenancy from the software layer down to the hardware: how isolation works, where it breaks down, and what it takes to run shared Kubernetes safely for both conventional applications and AI workloads.

In short

  • Multi-tenancy is a stack, not a setting: effective isolation requires coordinated controls at the hardware, network, VM, Kubernetes, and application layers — namespaces alone are not enough.

  • AI workloads raise the stakes: GPU memory, model weights, and training data introduce attack surfaces that namespace-scoped controls cannot address without hardware-level partitioning.

  • The model should match the threat: soft tenancy for trusted internal teams, hard tenancy with VM and DPU-enforced isolation for external customers or regulated AI workloads.

  • Bare metal and private cloud add complexity: operators must manage provisioning, GPU driver stacks, network fabric, and tenant sanitization that managed cloud services abstract away.

Who this guide is for

For platform engineers, infrastructure architects, and technical decision-makers at cloud service providers building shared infrastructure on bare metal, and at enterprises building private clouds for internal teams or business units.

Key highlights

  • Best practices are layered: namespaces, RBAC, network policy, quotas, admission, API Priority and Fairness, and observability work together — and for AI workloads, hardware-layer controls (GPU partitioning, DPU-enforced network isolation) are also required.

  • Shared infrastructure requires governance: CNCF's 2024 Kubernetes Benchmark Report found 37% of organizations have half or more of workloads needing rightsizing — without active quota and capacity management, shared clusters become noisy and expensive.

  • Isolation is a spectrum: the Kubernetes multi-tenancy documentation defines soft vs hard isolation and when dedicated clusters or stronger sandboxes are warranted — for AI workloads on bare metal, the bar is typically higher than for conventional apps.

  • Providers and enterprises face different pressures: CSPs need to monetize shared GPU capacity across customer tenants; enterprises need to give teams safe, cost-effective access to scarce accelerators without dedicated hardware per team.

What Is Kubernetes Multi-Tenancy?

Multi-tenancy in Kubernetes is the practice of sharing a cluster — or a stack of clusters and underlying hardware — across multiple tenants while maintaining meaningful isolation between them. A tenant may be a customer on a service provider's platform, a business unit in an enterprise, or a team running a distinct workload. The Kubernetes documentation distinguishes between multi-team tenancy (trusted internal users sharing a cluster) and multi-customer tenancy (external users who require stronger separation), and treats isolation as a spectrum rather than a binary.

Isolation spans two planes. The control plane governs who can read and change API objects — cluster configuration, secrets, workload definitions. The data plane governs what workloads can reach at runtime — network paths, node resources, storage, and on GPU-enabled clusters, accelerator memory. Kubernetes provides strong primitives for control-plane isolation; data-plane isolation — especially at the hardware level — requires additional work.

Where bare metal changes the equation

On managed cloud platforms, much of the hardware complexity is abstracted: node provisioning, network fabric, and GPU driver management are handled by the provider. On bare metal and private cloud, the operator is responsible for the full stack: BMC provisioning, firmware management, network fabric configuration, GPU driver deployment, DPU setup, and tenant sanitization between workloads. This operational surface is larger, but it also provides more control — particularly for AI workloads where hardware-level isolation is a security requirement, not just an operational convenience.

Illustrative scenario: a CSP running AI and conventional tenants

A cloud service provider runs ~150 tenants on shared bare metal: a mix of conventional application workloads and AI inference customers. Conventional tenants use namespace-per-customer isolation with RBAC, network policy, and resource quotas. AI tenants require more: GPU partitioning via NVIDIA MIG to prevent cross-tenant GPU memory access, DPU-enforced VLAN isolation for high-bandwidth east-west traffic, and VM-level separation for customers with strict data sovereignty requirements. Tenant onboarding is automated — from BMC provisioning through Kubernetes namespace creation and GPU quota assignment — so the provider can operationalize new hardware the same day it arrives and provision new tenants in minutes.

Multi-Tenant Kubernetes Architecture: From Namespaces to Bare Metal

Effective multi-tenant Kubernetes architecture on bare metal spans every layer of the stack. The diagram below shows the full picture: physical hardware at the base, isolation controls at each layer above it, and tenant workloads at the top. Each layer adds a boundary; removing any one layer leaves gaps the others cannot compensate for.

  1. Bare metal and BMC: automated provisioning from day one; firmware management, PXE-less boot, GPU driver deployment.

  2. DPU / BlueField: Zero Trust mode — network isolation enforced at the hardware layer, independently of the host OS. VLAN assignment per tenant; cross-tenant leakage prevented even if a host is compromised.

  3. GPU partitioning: MIG or vGPU divides GPU memory into isolated slices per tenant. Without this, GPU VRAM persists between workloads.

  4. VM / hypervisor layer: KubeVirt provides VM-level separation for tenants requiring hard isolation; GPU passthrough (VFIO) or vGPU assigned per VM.

  5. Kubernetes control plane: apiserver, etcd, scheduler serve all tenants; API Priority and Fairness protects against tenant-induced request storms.

  6. Kubernetes isolation controls: RBAC, admission policy, NetworkPolicy, ResourceQuota/LimitRange work together at the namespace level.

  7. Observability: tenant-labeled logs, metrics, and audit trails — including GPU utilization per tenant — provide accountability and incident evidence.

Controls at every layer

Layer

Isolation mechanism

What it prevents

Common failure mode

Hardware / DPU

VLAN isolation, Zero Trust DPU mode

Cross-tenant network leakage at NIC level

DPU not configured; host OS has network access

GPU

MIG partitioning, vGPU

GPU memory persistence between tenants

GPU not partitioned; shared VRAM across workloads

VM / hypervisor

KubeVirt, VFIO passthrough

Kernel and memory sharing between tenants

VMs not used; tenants share host kernel

Kubernetes RBAC

Namespace-scoped roles

Unauthorized API access

cluster-admin sprawl; over-broad ClusterRoleBinding

Network policy

Default-deny + explicit allows

East-west traffic between tenant namespaces

CNI does not enforce policy

Quotas / limits

ResourceQuota, LimitRange

Noisy neighbors; stranded GPU capacity

Missing limits; tenants delete own quotas

Admission

Pod Security, validating webhooks

Privileged containers, risky ingress shapes

Audit mode never promoted to enforce

APF

Request fairness on shared API server

One tenant's automation starving others

APF not configured; CI jobs flood apiserver

Observability

Tenant-labeled logs, metrics, audit

Evidence gaps during incidents

No tenant labels; short retention

Kubernetes Multi-Tenancy Best Practices

Multi-tenancy on bare metal or private cloud requires continuous operations — upgrades, policy drift, capacity reviews, and hardware lifecycle management all run in parallel with tenant workloads. The practices below are ordered by blast radius: start with who can access the API, then network paths, then resource consumption, then admission policy, then observability, then lifecycle. For AI workloads, GPU-specific controls are called out explicitly. Good Kubernetes management processes keep these controls synchronized as the cluster and tenant roster evolve.

Cross-check implementation against the OWASP Kubernetes Top 10, which enumerates the most common failure modes across access control, network segmentation, and policy enforcement.

1. Isolate Workloads Using Namespaces and RBAC

Namespaces are the primary scoping boundary in Kubernetes: they scope names, RBAC bindings, policies, quotas, and Pod Security labels. Use namespace-scoped Role/RoleBinding with least privilege rather than cluster-admin by default (RBAC good practices). On shared bare metal, namespace isolation is the first line of defense — but only if it is paired with everything else on this list. Namespace isolation without network policy and quota enforcement is a label, not a boundary.

For providers running enterprise virtualization alongside Kubernetes, RBAC policy must extend coherently across both environments — VM-resident workloads and containerized workloads should be subject to the same tenant identity and access model.

  • Reserve ClusterRoleBinding for break-glass admins; keep all tenant developers on namespace-scoped bindings.

  • Pair every new namespace with Pod Security labels, baseline NetworkPolicy, and quota objects at creation time — not as a follow-up task.

  • Audit ClusterRoleBindings regularly; cluster-admin granted during cluster setup tends to persist.

2. Enforce Network Segmentation Between Tenants

Without a CNI plugin that enforces NetworkPolicy, pods across namespaces can communicate freely — a significant risk on shared infrastructure where tenants include competing customers or sensitive workloads. Start from deny-by-default within tenant namespaces and build explicit allows outward, including DNS egress (NetworkPolicy).

For AI workloads, east-west network segmentation is especially important: GPU-to-GPU communication during distributed training can carry model weights in transit, and uncontrolled east-west paths between inference tenants expose output streams. On bare metal, how to implement microsegmentation at the network fabric level — not just at the CNI — closes gaps that NetworkPolicy alone cannot address. Multi-tenant networking enforced at the DPU layer provides isolation that persists even if the host OS is compromised.

  • Verify that your CNI plugin enforces NetworkPolicy before relying on default-deny in production — not all CNI implementations enforce policy by default.

  • Document east-west dependencies per tenant so traffic requirements are explicit and auditable, not inferred from what happens to work.

  • For AI workloads, enforce segmentation at both the Kubernetes network layer and the physical network layer (VLAN, DPU).

3. Apply Resource Quotas and Limit Ranges

ResourceQuota rejects over-consumption at the API server (ResourceQuota); LimitRange sets per-pod defaults and min/max bounds (LimitRange). Together they prevent noisy neighbors and enable accurate cost allocation — critical on bare metal where overprovisioning directly translates to stranded hardware spend.

For AI workloads, quotas must include GPU resources. Without GPU quotas, a single tenant's training job can saturate all available accelerators on a node, leaving inference tenants starved. CNCF's 2024 Kubernetes Benchmark Report found that 37% of organizations have half or more of their workloads needing rightsizing — on shared GPU clusters, that gap costs real money and creates real contention.

  • Quota all tenant namespaces for CPU, memory, and GPU resources (nvidia.com/gpu or equivalent extended resource).

  • Protect quota objects with admission policy so tenants cannot delete or modify their own resource ceilings.

  • Review quotas on a recurring schedule as tenant workloads and hardware fleet change.

4. Use Policy Enforcement for Governance and Compliance

Pod Security Admission applies privileged / baseline / restricted per namespace in enforce, audit, or warn mode. ValidatingAdmissionPolicy can guard quota objects, risky ingress shapes, and cluster-scoped configuration drift. For teams managing AI compliance requirements — data residency, model provenance, separation of duties — admission policy is the enforcement layer that makes audit evidence credible.

On bare metal multi-tenant clusters, policy drift is a particular risk: hardware-level configuration (GPU operator settings, DPU mode, network fabric) can diverge from the declared state without automated enforcement. Policy-as-code applied declaratively across the full stack — not just at the Kubernetes API — closes that gap.

  • Use audit mode before promote-to-enforce on brownfield clusters; enforce mode on new namespaces from day one.

  • Store policy in Git with CI review; policy exceptions treated like application code changes.

  • For AI workloads, extend policy to cover GPU resource requests, toleration rules for GPU node pools, and data-locality annotations.

5. Secure Cluster Access and API Authentication

A shared control plane is a high-value target. API Priority and Fairness (APF) protects the shared apiserver from tenant-induced request floods — one CI pipeline or model-loading job that hammers kubectl apply can starve other tenants' workloads if APF is not configured. On GPU clusters, model deployment typically involves large manifest operations that spike API server load in predictable patterns.

  • Disable anonymous authentication; use OIDC for human access and service accounts with minimal scopes for automation.

  • Rotate kubeconfigs on a schedule; restrict impersonate, escalate, and bind verbs to break-glass administrators.

  • Configure APF priority levels that reflect tenant tiers — AI workload management traffic should not compete with interactive developer tooling on the same priority queue.

6. Monitor and Audit Tenant Activity Continuously

Observability on a multi-tenant cluster must be tenant-scoped to be useful. Ship metrics and logs with consistent namespace and tenant labels; retain audit trails for policy changes, quota modifications, and GPU resource assignments. Without tenant-labeled GPU utilization metrics, cost allocation for AI workloads is guesswork and disputes with customers or internal teams become unresolvable.

  • Alert on admission denials, NetworkPolicy-blocked flows, and quota 403s — these are the early signals of misconfiguration or attempted boundary violations.

  • Scope dashboards so tenants cannot read each other's metrics, even accidentally — misconfigured observability tooling is a common data leakage path.

  • Include GPU utilization, memory pressure, and MIG partition saturation in tenant-scoped dashboards for AI workloads.

7. Standardize Tenant Onboarding and Lifecycle Management

Manual onboarding is a consistency risk on any shared cluster; on bare metal with GPU workloads it is an operational bottleneck. Automate namespace creation with required labels, quotas, limit ranges, Pod Security labels, and baseline NetworkPolicy from day one (namespaces walkthrough). For AI tenants, onboarding should also include GPU quota assignment, toleration rules for accelerator node pools, and any data-locality annotations required for compliance.

Offboarding is as important as onboarding — on GPU clusters, tenant sanitization (clearing GPU VRAM, revoking storage access, rotating secrets) must be automated and auditable, not handled manually.

  • Publish a declarative "tenant template" that covers all required namespace-level objects; require it for every new tenant.

  • Automate GPU sanitization on tenant offboarding; verify that VRAM is cleared between workloads if MIG is not in use.

  • Track lifecycle events (onboard, quota change, offboard) in the audit trail for compliance review.

Common Multi-Tenancy Mistakes — and Why AI Workloads Expose Them

Most multi-tenancy failures follow predictable patterns. For conventional workloads, these mistakes create policy gaps and operational friction. For AI workloads, the same mistakes can mean GPU memory leakage between tenants, uncontrolled training data exposure, and infrastructure costs that are impossible to attribute. The arrival of AI workloads on a shared cluster tends to make latent multi-tenancy problems visible — and expensive — quickly.

  • Treating namespaces as isolation. Namespaces scope names and RBAC, but without NetworkPolicy, quotas, and admission enforcement they are labels, not barriers. For conventional workloads this means a misconfigured service can reach another tenant's database. For AI workloads it means a training job can consume all GPU capacity on a shared node, and model outputs can traverse unrestricted east-west paths to other tenants' namespaces.

  • Assuming the CNI enforces policy. Not all CNI plugins enforce NetworkPolicy by default. Discovering this in production after AI inference traffic crosses tenant boundaries is a serious incident, not a configuration footnote.

  • Skipping GPU-layer isolation. Without MIG partitioning or vGPU, GPU memory is not isolated between tenants. A previous tenant's model weights can persist in VRAM and be accessible to the next workload scheduled on the same GPU. This is not a theoretical risk — it is a known class of GPU side-channel vulnerability.

  • Missing API Priority and Fairness. Training job launches and model-loading operations generate large bursts of API server requests. Without APF, these bursts can starve other tenants' control-plane operations. AI clusters that skip APF configuration often discover the problem during the first large training run.

  • Observability as an afterthought. Without tenant-scoped GPU metrics and audit trails, multi-tenant AI infrastructure cannot produce accurate cost attribution, cannot answer compliance questions, and cannot reconstruct what happened during an incident.

Benefits of Kubernetes Multi-Tenancy for Providers and Enterprises

The case for multi-tenant Kubernetes on bare metal is fundamentally economic and operational — but the benefits look different depending on whether you are a cloud service provider or an enterprise running a private cloud.

Improved Resource Utilization and Cost Efficiency

For cloud service providers, multi-tenant GPU pooling converts stranded accelerator capacity into margin. A bare metal GPU node sitting at 30% utilization serving a single tenant generates poor ROI; the same node serving four MIG-partitioned tenants at 80% aggregate utilization is a different business. GPU utilization at scale — with per-tenant quota tracking and usage-based billing — is what makes a GPU cloud commercially viable.

For enterprises, multi-tenancy means a data science team and an inference team can share the same GPU cluster without dedicated hardware per team. Scarce accelerators are allocated as needed, reclaimed when idle, and visible across teams through unified dashboards.

  • Eliminates stranded GPU capacity through fine-grained partitioning (MIG slices, vGPU) and dynamic scheduling.

  • Enables usage-based billing and cost attribution per tenant, team, or project.

  • Reduces hardware procurement pressure: more tenants per node means fewer nodes needed to serve the same workload.

Stronger Isolation Across Teams and Workloads

Multi-tenancy done correctly delivers isolation that is auditable and evidence-backed — not just asserted. For providers serving AI workloads with data sovereignty requirements, hardware-enforced isolation (DPU VLAN, MIG, VM passthrough) provides the kind of separation that compliance reviewers and enterprise customers can verify.

For enterprises, strong isolation means a business unit running a sensitive model — HR analytics, financial forecasting — can share infrastructure with general engineering teams without commingling data or compute.

  • DPU-enforced VLAN isolation provides network separation that persists even if the host OS is compromised.

  • MIG partitioning provides GPU memory isolation between AI tenants at the hardware level.

  • VM-level separation provides the strongest isolation boundary for tenants with strict regulatory or contractual requirements.

Simplified Cluster Management at Scale

Fewer control planes to manage, upgrade, and certify means lower operational overhead — particularly on bare metal where each cluster requires physical node management and network fabric configuration. A well-governed multi-tenant cluster with declarative provisioning and automated lifecycle management scales to hundreds of tenants with a small operations team.

  • Declarative templates reduce cluster provisioning from weeks to hours or minutes.

  • Consistent policy applied fleet-wide (admission, quotas, network policy) means fewer one-off configurations and less drift over time.

  • Automated onboarding and offboarding reduces manual operations work as the tenant roster grows.

Faster Deployment and Environment Provisioning

On bare metal, provisioning a new dedicated cluster can take days — BMC configuration, OS installation, network fabric setup, Kubernetes deployment. Multi-tenancy collapses that to namespace creation and quota assignment when the hardware is already in the pool. For AI workloads, this means new model training or inference environments can be available in minutes, not days.

  • New tenants onboarded in minutes through automated namespace provisioning with pre-configured resource bounds.

  • GPU capacity available immediately from the shared pool without waiting for dedicated hardware procurement.

  • Canary rollouts and A/B testing environments for inference workloads provisioned on demand.

Consistent Governance and Policy Enforcement

Multi-tenant infrastructure forces governance disciplines that single-tenant deployments often skip: every tenant must have quotas, every namespace must have network policy, every change must be audited. This is a cost of admission — but it also means the fleet stays governable as it grows.

  • Policy-as-code applied uniformly across all tenant namespaces prevents configuration drift at scale.

  • Audit trails covering policy changes, quota modifications, and GPU assignments satisfy compliance review requirements.

  • Separation of duties between platform operators (who manage the cluster) and tenants (who manage their workloads) is enforced structurally, not by convention.

Multi-Tenant Kubernetes Architecture Patterns

The Kubernetes multi-tenancy documentation defines soft, hard, and virtual control plane patterns. On bare metal and private cloud, the choice of pattern is also a hardware and operational decision — not just a Kubernetes configuration choice.

Patterns compared

Approach

Isolation level

Hardware implications

Use case

Soft multi-tenancy (namespaces)

Medium — strong with full policy stack; inadequate against hostile or high-value tenants

Shared nodes; GPU quotas required but not partitioned by default

Trusted internal teams; dev/test environments; conventional app workloads

Hard multi-tenancy (separate clusters)

High — separate control planes, minimal shared blast radius

Dedicated node pools per tenant or cluster; full hardware isolation possible

External customers with strict requirements; regulated AI workloads; independent upgrade windows

Virtual clusters per tenant

Medium-high — per-tenant Kubernetes API; workers typically still shared

Shared nodes; GPU partitioning still required at hardware level

SaaS providers needing per-customer API surface; CRD/controller isolation without full cluster per customer

Hybrid (mixed patterns by tier)

Mixed — match isolation depth to workload sensitivity

Shared pools for low-sensitivity; dedicated GPU nodes or VMs for high-sensitivity

CSPs serving both conventional and AI tenants; enterprises with mixed sensitivity workloads

Soft Multi-Tenancy Using Namespaces

Soft tenancy is the default starting point: tenants share a control plane, worker nodes, and (without GPU partitioning) GPU memory. It works well for trusted internal teams and conventional workloads where the risk of tenant compromise is low. The ceiling is CRDs and cluster-scoped objects — tenants that need custom controllers or cluster-admin equivalents will hit it quickly.

  • Best for: engineering teams on a shared internal platform; development and staging environments; conventional app hosting across business units.

  • GPU caveat: soft tenancy with GPU quotas but without MIG/vGPU is adequate for conventional GPU workloads but insufficient for AI tenants where memory isolation matters.

Hard Multi-Tenancy Using Cluster Isolation

Hard tenancy gives each tenant (or tier of tenants) a separate cluster with its own control plane, upgrade window, and hardware pool. On bare metal this is operationally heavier — each cluster requires its own provisioning, networking, and lifecycle management — but it provides the strongest isolation boundary and is the standard approach for customers with strict regulatory requirements or contractual isolation SLAs.

  • Best for: external customers who require proof of isolation; regulated AI workloads (healthcare, finance, government); tenants with incompatible change windows.

  • Hardware note: on bare metal, dedicated hardware per cluster removes GPU memory and network sharing concerns but requires fleet automation to manage at scale.

Virtual Clusters for Tenant Isolation

Kubernetes virtual clusters give each tenant a full Kubernetes API surface — their own control plane, CRDs, and controllers — while worker nodes remain in a shared pool. This is an effective middle ground for SaaS providers or CSPs who need per-tenant API isolation without the cost and operational overhead of a physical cluster per customer.

  • Best for: SaaS providers with per-customer Kubernetes APIs; tenants needing custom controllers or CRDs that would conflict in a shared cluster; API isolation without physical separation.

  • GPU note: virtual clusters do not provide hardware-layer GPU isolation on their own — MIG or vGPU partitioning is still required at the node level.

Hybrid Multi-Tenancy Across Environments

Most production environments mix patterns: soft tenancy for development and test, virtual clusters or hard tenancy for production, dedicated nodes or clusters for AI workloads or regulated tiers. Hybrid architectures require disciplined SKU definitions — what isolation level comes with each tier — and unified management so the operational model does not become a collection of snowflakes.

  • Best for: CSPs serving both conventional and AI customers with different isolation requirements; enterprises with mixed sensitivity workloads across teams.

  • Keep a single management plane across all tiers so policy, quota, and observability are consistent regardless of isolation model.

How to Choose a Multi-Tenancy Model

  • Soft tenancy: trusted teams, cost efficiency priority, conventional workloads — invest in RBAC, network policy, quotas, and admission rather than duplicating control planes. Add GPU quotas if accelerators are in the pool; add GPU partitioning if AI workloads are present.

  • Hard tenancy: external customers, strict compliance or regulatory requirements, AI workloads with contractual data sovereignty obligations, or tenants who require independent upgrade windows — expect higher operational cost and fleet management complexity.

  • Virtual clusters: tenants need Kubernetes API isolation or CRD/controller separation, but a physical cluster per tenant is too expensive or operationally heavy.

  • Hybrid: environments or workload tiers genuinely differ in sensitivity — soft for development, virtual clusters or hard tenancy for production, dedicated nodes for GPU or regulated workloads.

The hardware question runs parallel to the pattern question: how much of the isolation must be enforced at the hardware layer? For AI workloads on bare metal, the answer is usually "more than namespaces provide" — which typically means at least GPU partitioning and preferably DPU-enforced network isolation.

Multi-Tenancy vs Single Tenancy in Kubernetes

Kubernetes multi-tenancy vs single tenancy in one view: shared infrastructure under a unified management plane versus dedicated infrastructure per tenant or workload.

At a glance

Model

Cost

Isolation

Operational overhead

Best for

Multi-tenancy

Lower per tenant

Medium to high, depending on controls and hardware layer

Moderate — centralized management, but requires governance discipline

Shared platforms, GPU pools, SaaS providers, enterprise private clouds

Single tenancy

Higher per tenant

High — no shared blast radius

Higher — each tenant's infrastructure managed separately

Hostile tenants, highest-sensitivity workloads, customers who contractually require dedicated infrastructure

Multi-tenancy achieves its cost advantage by sharing hardware across tenants under a unified management plane. That advantage disappears without active governance: quotas that are never enforced, policies that drift, GPU memory that is never partitioned. The operational work of maintaining multi-tenancy is the price of the cost savings — and for AI workloads, that work extends down to the hardware layer.

Most production deployments mix tiers rather than choosing a single model permanently. The decision is not multi-tenant vs single-tenant; it is which workloads, at which sensitivity level, require which isolation depth.

Why Namespaces Aren't Enough: AI Workloads, GPUs, and Bare Metal

For conventional Kubernetes multi-tenancy, the case for going beyond namespaces is about defense in depth — adding network policy, quotas, and admission controls to close gaps that namespace scoping leaves open. For AI workloads on bare metal, it is a harder argument: the gaps that namespaces cannot close are not just policy gaps. They are physical.

What Namespaces Do Well

Namespaces provide strong scoping for Kubernetes API objects: RBAC bindings, Pod Security policies, quotas, network policies, and secrets are all namespace-scoped. A well-configured namespace with least-privilege RBAC, enforced network policy, resource quotas, and Pod Security Admission handles most conventional multi-tenancy requirements. The Kubernetes documentation on multi-tenancy is clear that this model works for trusted internal teams — and it does, when implemented completely.

Where the Software Model Breaks Down

The software isolation model has two fundamental limits on bare metal AI clusters.

First, GPU memory is not namespaced. A ResourceQuota can limit how many GPU devices a namespace can request; it cannot prevent a previous tenant's model weights from remaining in GPU VRAM when the next workload is scheduled to the same device. Without MIG partitioning (which physically isolates VRAM between GPU instances) or vGPU (which virtualizes the GPU with memory isolation), GPU memory is a shared physical resource that namespace-scoped controls cannot protect.

Second, network interfaces are not namespaced. On bare metal clusters, high-bandwidth east-west traffic — GPU-to-GPU communication during distributed training, NVLink and InfiniBand traffic between nodes — traverses physical network interfaces that Kubernetes NetworkPolicy does not govern directly. A NetworkPolicy rule controls what pods can initiate; it does not control what a physical NIC can receive. DPU-enforced isolation (VLAN assignment at the network interface level, controlled by the DPU independently of the host OS) is what closes this gap.

AI-Specific Security Risks in Multi-Tenant Environments

Multi-tenant AI infrastructure introduces a set of risks that are qualitatively different from conventional workload risks:

  • GPU memory persistence: model weights in VRAM can survive workload termination and be read by subsequent tenants scheduled to the same GPU. Without MIG or vGPU, this is a structural data leakage risk.

  • Side-channel attacks on shared GPUs: co-located GPU workloads can infer information about each other's computations through timing and power consumption side channels. Hardware partitioning reduces but does not eliminate this surface; full isolation requires dedicated physical GPU instances.

  • Training data exposure: distributed training jobs scatter gradient updates across nodes via high-bandwidth interconnects. Uncontrolled east-west paths between tenant namespaces expose gradient data in transit.

  • Inference poisoning: shared inference serving infrastructure (model servers, caches, routing layers) can be manipulated by a malicious tenant to influence outputs delivered to other tenants.

  • Model theft via shared storage: AI models stored on shared storage with inadequate tenant-scoped access controls can be exfiltrated by other tenants through legitimate storage APIs.

These risks are not addressed by adding more Kubernetes policy. They require hardware-layer controls: GPU partitioning, DPU-enforced network isolation, VM-level separation for the highest-trust tenants, and automated tenant sanitization on workload completion.

Key takeaways

Kubernetes multi-tenancy on bare metal or private cloud is a full-stack problem. The namespace and RBAC controls that handle most conventional workloads are a necessary baseline — but for AI workloads sharing GPU hardware, they are not sufficient. GPU memory isolation, hardware-layer network segmentation, and VM-level separation for the strongest isolation requirements all sit below the Kubernetes API, in a layer that requires separate provisioning, configuration, and lifecycle management.

The practical implication for providers and enterprises is that multi-tenancy architecture should be designed from the hardware up, not from the namespace down. Start with what the threat model actually requires at the hardware layer, then layer Kubernetes controls above it. Build the lifecycle automation — provisioning, onboarding, quota enforcement, tenant sanitization, offboarding — into the platform from day one, because retrofitting it onto a running cluster serving multiple tenants is significantly harder than getting it right at the start.

Book a demo to see how Mirantis k0rdent AI supports multi-tenant Kubernetes from bare metal to inference.

FAQ: Kubernetes Multi-Tenancy

How is multi-tenancy defined in this context?

Sharing a Kubernetes cluster — or a stack of clusters and underlying hardware — across multiple tenants (teams, customers, or business units) while maintaining meaningful isolation between them across the control plane, data plane, and hardware layer.

What counts as a multi-tenant architecture?

Multiple logical tenants (namespaces, virtual clusters, or separate clusters sharing physical infrastructure) managed under a unified control plane and hardware pool, with coordinated isolation controls at each layer.

Is multi-tenant Kubernetes secure enough for AI workloads?

It depends on the controls in place. Namespace-level controls are insufficient for AI workloads where GPU memory isolation and hardware-level network separation are required. With GPU partitioning (MIG/vGPU), DPU-enforced VLAN isolation, and VM-level separation for the highest-trust tenants, multi-tenant Kubernetes on bare metal can meet the isolation requirements of production AI workloads — including those with data sovereignty requirements.

How should you isolate tenants running AI workloads?

Defense in depth, hardware to application: (1) GPU partitioning (MIG or vGPU) for memory isolation; (2) DPU-enforced VLAN isolation for network separation at the hardware layer; (3) VM passthrough for tenants requiring full hardware isolation; (4) namespace-scoped RBAC and least-privilege access; (5) default-deny NetworkPolicy enforced at the CNI level; (6) GPU and CPU quotas with admission policy protecting quota objects; (7) tenant-scoped observability including GPU utilization and audit trails.

What makes bare metal multi-tenancy harder than managed Kubernetes?

On bare metal, the operator is responsible for the full stack: BMC provisioning, firmware management, GPU driver deployment, network fabric configuration, DPU setup, and tenant sanitization between workloads. Managed Kubernetes services abstract most of this — at the cost of less hardware-level control and higher per-unit cost at scale. For workloads requiring data sovereignty or hardware-enforced isolation, that trade-off often favors bare metal.

Soft vs hard tenancy: what changes for AI workloads?

For conventional workloads, the soft/hard decision is primarily about Kubernetes control plane isolation. For AI workloads, it extends to the hardware layer: soft tenancy with GPU quotas is adequate for low-sensitivity AI workloads; hard tenancy with MIG partitioning, DPU-enforced isolation, and optionally VM separation is required for AI workloads with strict data sovereignty or isolation SLAs.

When do virtual clusters make sense?

When tenants need their own Kubernetes API surface — custom CRDs, controllers, or admission webhooks — without the operational cost of a dedicated physical cluster. Virtual clusters do not provide hardware-layer GPU isolation; MIG or vGPU is still required at the node level.

Where should teams start hardening a multi-tenant cluster that will run AI workloads?

Start at the hardware: configure MIG partitioning or vGPU before the first AI tenant onboards — retrofitting GPU isolation after workloads are running is operationally disruptive. Then RBAC and namespace isolation, default-deny networking, GPU and CPU quotas, admission policy, and observability with GPU utilization metrics. The order matters: hardware isolation is easiest to configure before workloads arrive.

Enforce Multi-Tenant Kubernetes at Every Layer with Mirantis k0rdent AI

The challenge described throughout this guide — multi-tenancy that spans from namespace policy to GPU memory isolation to DPU-enforced networking — is not primarily a Kubernetes configuration problem. It is a full-stack infrastructure problem. Kubernetes provides the orchestration layer; the hardware beneath it requires separate management, separate automation, and separate isolation controls. On bare metal, assembling that stack from individual components — BMC automation tools, GPU operators, DPU configuration frameworks, Kubernetes distributions, observability platforms — is a significant engineering undertaking that takes months and requires deep expertise across multiple domains.

The Full-Stack Answer

Mirantis k0rdent AI addresses this as a unified platform: a single management layer that covers bare metal provisioning through AI inference delivery, purpose-built for two audiences — cloud service providers building multi-tenant AI clouds to sell to customers, and enterprises building private AI clouds for internal teams and business units.

The platform's "Metal-to-Model™" design reflects a deliberate architectural choice: multi-tenancy at the GPU memory level, at the network interface level, and at the Kubernetes namespace level is only coherent if it is managed from a single control plane. Assembling it from separate tools means the isolation guarantees of each layer depend on the integration points between tools staying synchronized — a configuration management problem that grows with scale and complexity.

From Metal to Model: How k0rdent AI Addresses Every Layer

Bare metal and hardware provisioning

k0rdent AI automates the entire provisioning lifecycle from bare metal — communicating directly with baseboard management controllers (BMC) via the Redfish protocol for BIOS configuration, firmware updates, and PXE-less boot. GPU hardware is operationalized the same day it arrives; the NVIDIA GPU Operator is deployed automatically with declarative MIG partition definitions, eliminating manual per-node configuration that is a common source of inconsistency and security gaps.

  • Automated hardware discovery, Bill of Materials validation, and firmware management via NVIDIA NCX Infra Controller.
  • Same-day GPU operationalization with standardized partitioning schemes across the fleet.
  • Support for NVIDIA Ampere, Hopper, and Blackwell architectures; AMD GPU stacks; DGX, HGX, and MGX platforms.

GPU isolation and sharing

GPU partitioning in k0rdent AI is not a post-deployment configuration — it is a first-class object in the cluster deployment model. MIG partition schemes, vGPU configurations, and software-based sharing are defined declaratively and applied consistently across nodes. Per-tenant GPU quotas, utilization tracking, and usage-based billing are built into the platform, making GPU multi-tenancy commercially viable for providers and cost-attributable for enterprises. Testing on NVIDIA GB200 NVL72 hardware validated less than 0.1% performance degradation compared to bare metal when virtualization is layered on top.

  • NVIDIA MIG, vGPU, and software-based GPU sharing with per-tenant quota enforcement.
  • VM-passthrough (VFIO) for tenants requiring full physical GPU isolation.
  • Per-tenant GPU utilization monitoring, quota tracking, and token/request-based billing.

Network isolation at the hardware layer

k0rdent AI integrates with NVIDIA BlueField DPUs operating in Zero Trust mode — the DPU is configured and managed independently of the host OS, so network isolation persists even if a host is compromised. Tenant network interfaces are isolated at the VLAN level: tenants only have access to the interfaces assigned to them, and those interfaces only have access to the VLANs assigned to the tenant. This is the isolation model that AI workloads with data sovereignty requirements need, and it is enforced at the physical network layer, not just in Kubernetes policy.

  • BlueField-3 DPU deployment and lifecycle management via k0rdent AI, with Zero Trust host isolation.
  • Strict VLAN isolation per tenant at the network interface level.
  • Immutable worker OS prevents compromised hosts from accessing network or hypervisor infrastructure.
  • BlueField-4 support in preparation: 6x increased compute, 800 Gb/s bandwidth.

VM-level separation for hard tenancy

For tenants requiring the strongest isolation boundary — customers with contractual isolation SLAs, regulated AI workloads, or workloads that cannot share a host kernel — k0rdent AI provides VM-level separation via KubeVirt. GPU passthrough (VFIO) assigns dedicated physical GPUs to VMs; vGPU assigns virtualized GPU resources with memory isolation. The hypervisor cluster, DPU cluster, and child tenant clusters are separate management domains within the k0rdent architecture, so a compromise at the tenant level does not propagate upward.

Kubernetes lifecycle and self-service

Declarative cluster templates cover the full onboarding sequence — from bare metal provisioning through Kubernetes cluster creation, GPU operator deployment, RBAC configuration, quota assignment, and network policy — so new tenants are provisioned consistently in minutes, not days. A self-service portal with configurable marketplace and usage-based billing enables providers to productize their AI infrastructure commercially without custom portal development.

Validated by NVIDIA, Built for Production

Mirantis k0rdent AI is a Founding ISV Partner in the NVIDIA AI Cloud Ready Initiative — a validation program for software platforms that enable NVIDIA Cloud Partners to deploy scalable AI infrastructure. The NVIDIA AI Cloud Ready designation reflects validation across the full NVIDIA reference architecture: GPU hardware (Ampere, Hopper, Blackwell), networking (Quantum InfiniBand, Spectrum-X Ethernet, NVLink), and management platforms (DGX, HGX, MGX).

Integration with NVIDIA Run:ai — automated through k0rdent AI with over 100 functional tests for certification — enables enterprises and providers to deploy production-ready AI factory environments in minutes rather than weeks. As NVIDIA VP/GM Omri Geller noted at the April 2026 announcement: "By integrating NVIDIA Run:ai with Mirantis k0rdent AI, customers can automate deployment of AI factory environments."

Gartner projects worldwide AI spending will reach $2.5 trillion in 2026. For providers and enterprises who need to make that investment count — on infrastructure they control, at a margin that works — multi-tenancy done at every layer is not optional.

Mirantis simplifies Kubernetes.

From the world’s most popular Kubernetes IDE to fully managed services and training, we can help you at every step of your K8s journey.

Connect with a Mirantis expert to learn how we can help you.

CONTACT US
k8s-callout-bg.png