Quickstart - CLI
This quickstart shows what the kli CLI is for: seeing which workloads run in a cluster and how each one is structured. You run a JobSet with a leader and workers, then use kli to see which pods play which role. The Karta Operator is not required.
Prerequisites
kliinstalled. For more information, refer to Installation.kubectl, Docker, and kind, to create a local cluster. If you already have a cluster, skip step 1 and use your own kubeconfig.
Quickstart Steps
-
Create a local cluster:
-
Install the JobSet controller. Replace
<version>with a release from the JobSet releases page: -
Save the following manifest as
jobset.yaml. It describes a JobSet with one leader and two workers: -
Submit the JobSet and wait until its pods run:
kubectllists three pods in one flat list. It does not show which pod is the leader and which are workers. -
List the JobSets in the namespace:
To list the workloads of every type that
kliunderstands, runkli get --all-types. -
Describe the workload:
The output groups the pods by the role that they play and adds up the resources that each role requests. The pod names and node name in your output are different:
Workload Map found the JobSet definition in the catalog that is built into
kli. It used the definition to attribute each pod to its role.The commands print the warning
the kartas.run.ai CRD is not installed; showing built-in definitions only. It means that the cluster has no custom definitions, and you can ignore it. -
Delete the cluster:
Next Steps
- To see the same structure for a manifest that you have not submitted, run
kli describe -f jobset.yaml. - To learn the terms in the output, refer to Core Concepts.
- For shell completion and more commands, refer to Inspect Workloads with the CLI.