AI Operations

Kubernetes for AI Workloads vs VMs: Orchestration Choices

Running Kubernetes for AI workloads means open-source software schedules training and inference jobs across a shared pool of GPU servers. A virtual machine (VM) with GPU passthrough gets physical GPUs attached directly for its own use.

We'd choose Kubernetes when several teams share a GPU fleet and the job mix changes from week to week. A VM with GPU passthrough takes less work than Kubernetes when one workload owns the GPUs.

The choice depends on how many workloads share the GPUs, how often that mix changes and the isolation required between tenants, the teams or customers sharing the GPUs.

TL;DR: Kubernetes is worth its setup work on GPUs shared by several teams with a changing job mix. A VM with GPU passthrough suits one owner with fixed hardware and keeps each tenant in its own VM.

Managed Endpoints as an Alternative to Kubernetes and VMs

MLflow is an open-source tool for managing machine learning models. Its 2026 serving guide warns against Kubernetes for one model with modest traffic on unshared GPUs.

For that case, the guide recommends a managed cloud endpoint, which reaches production faster than a Kubernetes setup and with less overhead. We'd send the same case to a VM with GPU passthrough when the model must stay on the team's own hardware.

Kubernetes vs VMs Comparison Table

The table scores both options on a GPU buyer's first questions.

QuestionKubernetesVMs with GPU passthroughBetter fit
How a job gets GPUsThe job asks for a GPU count, and the scheduler picks a serverAn administrator attaches GPUs when setting up the VMTie
Tenant separationSoftware policy inside one shared clusterA separate VM for each tenantVMs
Idle GPU hours in a shared fleetThe scheduler packs jobs onto free GPUs and shrinks the clusterGPUs stay with their VM through idle timeKubernetes
Setup and running effortExtra scheduling add-ons and their upkeepCreate the VM, attach the GPUs, start the jobVMs
Fit for one dedicated workloadThe scheduler adds a layer with little benefitGPUs attach directly to the job's VMVMs

What Kubernetes Adds to Schedule GPU Workloads

Kubernetes hands out GPUs by count. The Kubernetes documentation describes the setup: a device plugin from the GPU vendor reports each server's GPUs as a resource such as nvidia.com/gpu.

Kubernetes runs work in pods, groups of containers scheduled as one unit. Each pod asks for GPUs by number, such as nvidia.com/gpu: 2.

Our guide to Kubernetes container orchestration for AI covers device plugin setup, GPU requests and GPU quotas.

Counting GPUs works for one job on one server. A training job spread across many servers needs its pods started at the same moment.

Teams sharing a cluster also need quotas and a fair order for their jobs.

The Cloud Native Computing Foundation (CNCF) hosts the Kubernetes project. An AWS engineer's post on the CNCF blog names the add-ons that fill these gaps:

  1. Gang scheduling: starts a multi-server training job once each of its GPUs is free, so a half-started job doesn't tie up GPUs. The post calls it a basic requirement ("table stakes") for training.
  2. Kueue: a Kubernetes project that queues batch jobs and enforces each team's GPU quota. The post names it the emerging standard for batch work.
  3. Dynamic Resource Allocation (DRA): a newer Kubernetes method for requesting GPUs by their attributes, which lets clusters partition and reassign GPUs at runtime.

When Kubernetes Wins: Shared GPU Fleets With Changing Workloads

Kubernetes earns back its setup cost in a fleet where several teams compete for GPUs. Its scheduler packs jobs onto free GPUs, Kueue holds each team to its quota, and autoscaling shrinks the cluster during quiet hours.

OpenAI described this pattern in a 2018 CNCF case study. Christopher Berner, then its head of infrastructure, said the lab used Kubernetes mainly as a batch scheduler, with an autoscaler to cut the cost of idle servers.

Survey data points the same way. CNCF's 2025 Annual Cloud Native Survey found that 66% of organizations hosting generative AI models use Kubernetes for at least part of their inference.

The same survey found that 44% of organizations don't yet run AI or machine learning workloads on Kubernetes.

Spectro Cloud's 2025 survey found 90% of organizations expected their AI workloads on Kubernetes to grow within a year. Spectro Cloud sells Kubernetes management software, so treat that figure as a vendor's own sample.

Both surveys measure adoption and plans. Neither compares Kubernetes with VMs on cost or speed.

Owned or reserved GPUs cost the same per hour whether busy or idle, so filling idle hours makes the main financial case for Kubernetes. Our guide to optimizing GPU clusters for LLM training covers the tuning that raises their utilization.

When VMs Win: Dedicated Workloads and GPU Passthrough

A scheduler earns little when one team runs one model on a fixed set of GPUs. The team still pays to install, upgrade and monitor the scheduler's add-ons.

GPU passthrough attaches a physical GPU to one VM when an administrator sets up the VM. The job inside talks to the GPU directly, without a queue or quota system in the way.

Nebius, a GPU cloud provider, calls Kubernetes "more of a construction kit than a plug-and-play environment" in its guide to Kubernetes for AI workloads. The guide says building a production-ready cluster with GPU support, logging and monitoring takes time and expertise.

A VM with passthrough needs GPU drivers and monitoring, without a scheduling layer on top. Its GPUs also sit idle between jobs.

Tenant Isolation on Kubernetes vs VMs

Kubernetes separates tenants through software policy. Namespaces divide the cluster into named areas, role-based access control (RBAC) limits who can act in each area, and quotas cap each area's GPUs.

Portworx, a Kubernetes storage vendor, lists multi-tenancy among the hard parts of running AI on Kubernetes. Its guide says isolating tenants depends on strict network and RBAC policies.

With passthrough, each tenant gets its own VM and its own physical GPU. The hypervisor runs the VMs and keeps each tenant's memory and GPU out of other tenants' reach.

Choose VM separation when tenants are outside customers, regulated workloads or teams with separate security rules.

NVIDIA's Multi-Instance GPU (MIG) and virtual GPU (vGPU) split one card among several jobs, which changes the separation between tenants. GPU slicing needs its own comparison.

Running Kubernetes and VMs on One GPU Fleet

Kubernetes and VMs can share one GPU fleet. OpenAI's 2018 case study shows both: most experiments ran on Kubernetes, and the largest-scale workloads ran directly on cloud VMs.

We'd put training and bursty shared inference on Kubernetes, and pin dedicated production inference and single-tenant workloads to VMs with passthrough. We drew that split from the trade-offs in this comparison.

The GPU cluster architecture decides the servers and network links for each side. Tenant rules decide which workloads go to VMs.

Kubernetes or VMs: A Buyer's Checklist

Each list sums up the earlier sections as conditions to check.

Signs of a Kubernetes fit:

  1. Shared GPUs: several teams or workloads compete for the same GPUs.
  2. Changing job mix: the mix changes weekly or faster, so fixed assignment strands GPU hours.
  3. Quotas between teams: the business needs quotas, fair share or priority order between teams.
  4. Platform staff: a team can run gang scheduling, Kueue and DRA.

Signs of a VM fit:

  1. One owner: one workload holds the GPUs for its own use.
  2. Fixed hardware: the team rarely changes the GPU allocation.
  3. Hard tenant separation: tenants need separate VMs, enforced by the hypervisor.
  4. Small platform team: the team lacks staff to run Kubernetes scheduling add-ons.

A fleet with both kinds of work can mix them: Kubernetes where teams share GPUs, and VMs for workloads that own their GPUs. Zettabyte makes zWARE, GPU cluster software that runs on bare-metal or virtualized GPU clusters and includes its own GPU-tuned Kubernetes.

Kubernetes for AI Workloads FAQ

Does Kubernetes give higher GPU utilization than VMs?

Kubernetes can raise GPU utilization in a shared fleet, because packing, quotas and autoscaling put idle GPU hours back to work. Our sources don't measure the gain against VMs.

Track GPU utilization before and after the move. Model FLOPs utilization (MFU) and model bandwidth utilization (MBU) measure the share of a GPU's peak compute and memory bandwidth that the model puts to use.

Is Kubernetes overkill for a single AI training job?

Usually, yes. One job on its own GPUs gains little from a scheduler, a queue or a quota system. A VM with GPU passthrough runs that job on less infrastructure than a Kubernetes cluster.

Can Kubernetes and VMs run on the same GPU fleet?

Yes, OpenAI ran both side by side. Its 2018 CNCF case study shows the lab's research teams on Kubernetes clusters, with its biggest workloads on cloud VMs under its own management.