Skip to navigation

Key Features of Workload Map

View as MarkdownOpen in Claude

Workload Map offers the following key features, grouped by what they help you do.

Describe and Read Workloads

FeatureDescription
Describe any workload typeA declarative definition maps the pod specifications, scaling parameters, and status fields of a workload with JQ path expressions. You do not write per-type code.
One API to read and change workloadsThe Go library extracts pod templates, replica counts, status, and metadata. It also updates pod specs, labels, and annotations through the same calls for every workload type.
Pod attributionThe library traverses the workload hierarchy to identify the pods of each component and group them.
Workload treeThe full hierarchy of a workload, with its structure, scale, specs, and status.

Common Status Vocabulary

The native conditions of each workload map to one set of statuses. The suspend and resume statuses let a definition describe workloads that can be paused.

GroupStatuses
Starting and runningInitializing, Running
FinishedCompleted, Failed
Needs attentionDegraded, Undefined
PausingSuspending, Suspended, Resuming

Scheduling

FeatureDescription
Gang scheduling instructionsA definition can tell a scheduler how to group the pods of a workload. KAI Scheduler uses these instructions as a default plugin for workload types that have no native plugin.

Definitions

FeatureDescription
Catalog of pre-built definitionsThe catalog includes tested definitions for common workload types, such as JobSet, PyTorchJob, MPIJob, RayCluster, LeaderWorkerSet, KServe, NVIDIA NIM, NVIDIA Dynamo, Grove, and Volcano Job.
Experimental definitionsA definition can set spec.experimental: true. The CLI and the Headlamp plugin exclude it until you enable experimental definitions. The Kueue Workload definition is an example.
Definition validationThe library, the kli validate command, and the Karta Operator admission webhook check a definition. The webhook also rejects a second definition for the same group, version, and kind.

Run and Visualize

FeatureDescription
Karta Operator and Helm chartThe Karta Operator validates definitions on admission and upgrades the CRD through a Helm chart hook. A FIPS 140-3 mode is available for the Karta Operator.
Headlamp pluginA workloads page in Headlamp shows any workload type through the Workload Map engine. The engine runs in the browser as WebAssembly, so no server-side component is needed.

Developer Tools

Workload Map provides the following tools for developers.

CLI Tools

The kli command-line tool inspects workloads through their definitions. It supports table, JSON, and YAML output and shell completion. It has four commands.

CommandDescription
getLists workloads.
describeShows the resolved structure and status of a workload, or of a manifest that you have not yet submitted.
definitionsLists the definitions from the built-in catalog and the cluster, or outputs one definition by name.
validateChecks a definition file.

APIs and SDKs

ComponentDescription
Go libraryThe karta/sdk module evaluates definitions, extracts and updates workload information, and builds the workload tree.
Karta CRDThe Karta custom resource kind in the run.ai/v1alpha1 API group stores the definition of a workload type in a cluster.
WebAssembly engineThe karta-wasm module compiles the engine to WebAssembly so that it can run in a browser.

Next Steps