From 2451a161255e1d81bb87c01b7b47256d4de4e168 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 16 Jun 2023 16:02:36 +0200 Subject: [PATCH] Keep an example simple for applying --- site/content/en/docs/tasks/run_jobsets.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/site/content/en/docs/tasks/run_jobsets.md b/site/content/en/docs/tasks/run_jobsets.md index 3f3a23d5d1..393730fe8c 100644 --- a/site/content/en/docs/tasks/run_jobsets.md +++ b/site/content/en/docs/tasks/run_jobsets.md @@ -6,7 +6,7 @@ description: > Run a Kueue scheduled JobSet. --- -This page shows how to leverage Kueue's scheduling and resource management capabilities when running [JobSet Operator](https://github.com/kubernetes-sigs/jobset) [JobSets](https://github.com/kubernetes-sigs/jobset/blob/main/docs/concepts/README.md). +This document explains how you can use Kueue’s scheduling and resource management functionality when running [JobSet Operator](https://github.com/kubernetes-sigs/jobset) [JobSets](https://github.com/kubernetes-sigs/jobset/blob/main/docs/concepts/README.md). This guide is for [batch users](/docs/tasks#batch-user) that have a basic understanding of Kueue. For more information, see [Kueue's overview](/docs/overview). @@ -42,7 +42,7 @@ metadata: ### b. Configure the resource needs -The resource needs of the workload can be configured in the `spec.replicatedJobs`. +The resource needs of the workload can be configured in the `spec.replicatedJobs`. The first [PriorityClassName](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) of `spec.replicatedJobs` that is not empty will be used as the priority. ```yaml - template: @@ -64,12 +64,16 @@ The JobSet looks like the following: apiVersion: jobset.x-k8s.io/v1alpha2 kind: JobSet metadata: - name: sleep + generateName: sleep-job- labels: kueue.x-k8s.io/queue-name: user-queue spec: + network: + enableDNSHostnames: false + subdomain: some-subdomain replicatedJobs: - name: workers + replicas: 2 template: spec: parallelism: 4 @@ -112,9 +116,6 @@ spec: You can run this JobSet with the following commands: ```sh -# Create the JobSet (once) -kubectl apply -f jobset-sample.yaml -# To observe the queueing and admission of the jobs you can clone this example with different metadata.name and apply them. -kubectl apply -f jobset-job-sample-colone-1.yaml -kubectl apply -f jobset-job-sample-colone-2.yaml +# To monitor the queue and admission of the jobs, you can run this example multiple times: +kubectl create -f jobset-sample.yaml ```