Skip to navigation

Catalog of Definitions

View as MarkdownOpen in Claude

The catalog contains the pre-built, tested definitions that ship with Workload Map. The Go library and kli include the catalog, so they can read these workload types even when the cluster has no definition for them. This page explains how the catalog works and lists its definitions.

How the Catalog Works

  • The definitions are Go code in pkg/catalog. The repository generates them into YAML files in the docs/catalog/ directory.
  • The name of a definition follows the group, version, and kind of the workload, such as leaderworkerset-x-k8s-io-leaderworkerset-v1. The file has the same name with the .yaml extension.
  • A definition in the cluster overrides the catalog definition for the same group, version, and kind. kli lists such a definition once, with the origin cluster.
  • A definition marked spec.experimental: true is excluded by default. For more information, refer to Inspect Workloads with the CLI.

To list the definitions in the catalog, run the following command:

kli definitions

To print one definition, give its name. The YAML output applies and validates as it is:

kli definitions kubeflow-org-pytorchjob-v1 -o yaml

To write your own definition, start from the catalog definition that is closest to your workload type. For more information, refer to Define a Workload Type.

Definitions in the Catalog

Each name in the following table links to the definition file in the repository. The components are the components of the definition, from the root component down.

Workload typeAPI versionProjectDefinitionComponents
Deploymentapps/v1Kubernetesapps-deployment-v1deployment, replicaset
StatefulSetapps/v1Kubernetesapps-statefulset-v1statefulset
Jobbatch/v1Kubernetesbatch-job-v1job
CronJobbatch/v1Kubernetesbatch-cronjob-v1cronjob, job
Podv1Kubernetescore-pod-v1pod
JobSetjobset.x-k8s.io/v1alpha2Kubernetesjobset-x-k8s-io-jobset-v1alpha2jobset, replicatedjob
LeaderWorkerSetleaderworkerset.x-k8s.io/v1Kubernetesleaderworkerset-x-k8s-io-leaderworkerset-v1leaderworkerset, group, leader, worker
Sandboxagents.x-k8s.io/v1beta1Kubernetes Agent Sandboxagents-x-k8s-io-sandbox-v1beta1sandbox, agent, companion
PyTorchJobkubeflow.org/v1Kubeflowkubeflow-org-pytorchjob-v1pytorchjob, master, worker
MPIJobkubeflow.org/v2beta1Kubeflowkubeflow-org-mpijob-v2beta1mpijob, launcher, worker
RayClusterray.io/v1Rayray-io-raycluster-v1raycluster, head, worker
RayJobray.io/v1Rayray-io-rayjob-v1rayjob, head, worker
RayServiceray.io/v1Rayray-io-rayservice-v1rayservice, head, worker
InferenceServiceserving.kserve.io/v1beta1KServeserving-kserve-io-inferenceservice-v1beta1inferenceservice, predictor, transformer
LLMInferenceServiceserving.kserve.io/v1alpha1KServeserving-kserve-io-llminferenceservice-v1alpha1llminferenceservice, main, prefill, worker, leader, prefill-leader, prefill-worker, router-scheduler
LLMInferenceServiceserving.kserve.io/v1alpha2KServeserving-kserve-io-llminferenceservice-v1alpha2llminferenceservice, main, prefill, worker, leader, prefill-leader, prefill-worker, router-scheduler
Knative Serviceserving.knative.dev/v1Knativeserving-knative-dev-service-v1knativeservice, revision
NIMServiceapps.nvidia.com/v1alpha1NVIDIAapps-nvidia-com-nimservice-v1alpha1nimservice
NIMCacheapps.nvidia.com/v1alpha1NVIDIAapps-nvidia-com-nimcache-v1alpha1nimcache
DynamoGraphDeploymentnvidia.com/v1alpha1NVIDIA Dynamonvidia-com-dynamographdeployment-v1alpha1dynamographdeployment, service
DynamoGraphDeploymentnvidia.com/v1beta1NVIDIA Dynamonvidia-com-dynamographdeployment-v1beta1dynamographdeployment, component
PodCliqueSetgrove.io/v1alpha1Grovegrove-io-podcliqueset-v1alpha1podcliqueset, clique, scalinggroup
Milvusmilvus.io/v1beta1Milvusmilvus-io-milvus-v1beta1milvus, and a component for each Milvus service, such as standalone, proxy, datanode, and querynode. For the full list, refer to the definition.
Volcano Jobbatch.volcano.sh/v1alpha1Volcanobatch-volcano-sh-job-v1alpha1vcjob, task

Experimental Definitions

The following definition is experimental. It is excluded from kli and the Headlamp plugin until you enable experimental definitions in each tool.

Workload typeAPI versionProjectDefinitionComponents
Workloadkueue.x-k8s.io/v1beta2Kueuekueue-x-k8s-io-workload-v1beta2workload

To include it in kli, use the --catalog-experimental-definitions option. For the Headlamp plugin, refer to Include Experimental Definitions.

Next Steps