The Adapter Hell of Kubernetes AI Workloads
If you've ever built a scheduler, dashboard, or cost tool for AI workloads on Kubernetes, you know the pain: every framework speaks its own language. A JobSet encodes replicas and pod templates one way, a PyTorchJob another, a RayCluster yet another. Each new CRD means writing yet another adapter to answer the same three questions — what's the structure, how do I read status, and how do I safely mutate the pod spec?
NVIDIA's Run:ai team hit this wall while building their platform. Every new framework a customer brought became a roadmap item. Support for new workload types waited for releases. That's the adapter tax, and it's expensive.
This post breaks down how NVIDIA Workload Map (formerly Karta) solves this with a declarative CRD plus a Go library, and why it matters for anyone running distributed AI on Kubernetes.
![]()
How Workload Map Works: Declarative Definitions Instead of Compiled Adapters
Workload Map ships as a Kubernetes CRD (kind: Karta) plus a Go library. Each workload definition specifies:
- Where to find pod templates (
podTemplateSpecPath) - How to compute replica counts (
scaleDefinition) - How to map native status to a shared vocabulary (
statusMappings)
Here's the JobSet definition excerpt — note how the running status is derived with a jq expression because JobSet doesn't report a plain "Running" condition:
apiVersion: run.ai/v1alpha1
kind: Karta
spec:
structureDefinition:
rootComponent:
name: jobset
kind: { group: jobset.x-k8s.io, version: v1alpha2, kind: JobSet }
statusDefinition:
statusMappings:
running:
- byExpression:
expression: "(.status.replicatedJobsStatus // []) | any(.ready > 0 and .active > 0) and all(.failed == 0)"
expectedResult: "true"
childComponents:
- name: replicatedjob
kind: { group: batch, version: v1, kind: Job }
specDefinition:
podTemplateSpecPath: .spec.replicatedJobs[].template.spec.template
scaleDefinition:
replicasPath: .spec.replicatedJobs[] | .replicas * .template.spec.parallelism
instanceIdPath: .spec.replicatedJobs[].name
The [] in paths means "for each entry" — each replicated job becomes an instance. The replicas * parallelism calculation is why the example manifest sets parallelism explicitly. And instanceIdPath is how "leader" and "worker" show up as distinct roles instead of three anonymous Jobs.
The payoff: one definition, many consumers
The same definition powers:
- Inspection — the Workload Map CLI (
kli describe jobset/demo) renders the full tree with GPU totals - Gang scheduling — KAI Scheduler uses
optimizationInstructions.gangSchedulingfor pod grouping - Platform management — NVIDIA Run:ai registers the workload type with a single API call
No per-framework parser code. Workload knowledge moves from compiled adapters into YAML you can review and apply like any other manifest.

Workload Map vs. The Old Way: A Comparison
| Aspect | Traditional Adapter Approach | NVIDIA Workload Map |
|---|---|---|
| Adding new framework | New adapter code + release cycle | Write/apply a YAML definition |
| Status interpretation | Custom code per CRD | Shared vocabulary via statusMappings |
| Pod spec mutation | Framework-specific logic | Uniform structural view from Go library |
| Scheduler integration | Native plugin per framework | Fallback via definition (native plugins still take precedence) |
| Multi-cluster scheduling | Custom parsing per consumer | Reusable definitions (e.g., Elotl Nova) |
| License | Varies | Apache 2.0 |
Supported workload types (prebuilt catalog): JobSet, PyTorchJob, RayCluster, RayJob, RayService, KServe, Knative, MPIJob, NVIDIA NIM, LeaderWorkerSet, Milvus, Grove PodCliqueSet, NVIDIA Dynamo.
Limitations and caveats
- Not a replacement for native plugins. KAI Scheduler uses Workload Map as a fallback; native plugins retain precedence. If a framework has a mature native integration, you may not need this.
- Definition quality matters. A sloppy
statusMappingsexpression means wrong phase interpretation. Test your definitions against real workloads. - Ecosystem maturity. Workload Map is in production within NVIDIA Run:ai and adopted by Elotl Nova, but the broader ecosystem is still growing. Don't expect every scheduler to support it tomorrow.
- CRD naming quirk. The resource kind remains
Kartaeven after the rebrand — expect some confusion in docs and tooling.
![]()
The Bigger Picture: Workload Knowledge as Data
The real insight here isn't the specific CRD — it's the architectural shift. Moving workload knowledge out of compiled adapters and into declarative data means platform teams can ship support for new frameworks without waiting for a release. It's the same philosophy that made Kubernetes itself win: describe desired state, let controllers reconcile.
If you're running distributed AI workloads on Kubernetes, start with the workload catalog to see if your framework is already covered. If not, writing a YAML definition is a far lower bar than shipping a new adapter.
Next steps for learners:
- Explore the NVIDIA DSX AI Factory GitHub org for the CLI and catalog
- Read up on JobSet and LeaderWorkerSet if you're new to distributed training on K8s
- Experiment with gang scheduling in KAI Scheduler to understand why pod grouping matters for GPU-heavy workloads
Related reads: