generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
129 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
keps/2941-DRA-Structured-Parameters/examples/gpu-test1/single-clusterqueue-setup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
apiVersion: kueue.x-k8s.io/v1beta1 | ||
kind: ResourceFlavor | ||
metadata: | ||
|
42 changes: 42 additions & 0 deletions
42
keps/2941-DRA-Structured-Parameters/examples/gpu-test2/gpu-test2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# One pod, one container | ||
# Asking for 2 distinct GPUs | ||
|
||
--- | ||
apiVersion: resource.k8s.io/v1alpha3 | ||
kind: ResourceClaimTemplate | ||
metadata: | ||
namespace: gpu-test2 | ||
name: multiple-gpus | ||
spec: | ||
spec: | ||
devices: | ||
requests: | ||
- name: gpus | ||
deviceClassName: gpu.example.com | ||
allocationMode: ExactCount | ||
count: 2 | ||
|
||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
namespace: gpu-test2 | ||
name: job0 | ||
labels: | ||
app: job | ||
kueue.x-k8s.io/queue-name: user-queue-gpu-test2 | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: ctr0 | ||
image: ubuntu:22.04 | ||
command: ["bash", "-c"] | ||
args: ["export; sleep 9999"] | ||
resources: | ||
claims: | ||
- name: gpus | ||
resourceClaims: | ||
- name: gpus | ||
resourceClaimTemplateName: multiple-gpus |
9 changes: 9 additions & 0 deletions
9
keps/2941-DRA-Structured-Parameters/examples/gpu-test2/single-clusterqueue-setup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
apiVersion: kueue.x-k8s.io/v1beta1 | ||
kind: LocalQueue | ||
metadata: | ||
namespace: "gpu-test2" | ||
name: "user-queue-gpu-test2" | ||
spec: | ||
clusterQueue: "cluster-queue" | ||
|
56 changes: 56 additions & 0 deletions
56
keps/2941-DRA-Structured-Parameters/examples/gpu-test3/gpu-test3.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# One pod, two containers | ||
# Each asking for shared access to a single GPU | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: gpu-test3 | ||
|
||
--- | ||
apiVersion: resource.k8s.io/v1alpha3 | ||
kind: ResourceClaimTemplate | ||
metadata: | ||
namespace: gpu-test3 | ||
name: single-gpu | ||
spec: | ||
spec: | ||
devices: | ||
requests: | ||
- name: gpu | ||
deviceClassName: gpu.example.com | ||
|
||
--- | ||
|
||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
namespace: gpu-test3 | ||
name: job0 | ||
labels: | ||
app: job | ||
kueue.x-k8s.io/queue-name: "user-queue-gpu-test3" | ||
spec: | ||
parallelism: 1 | ||
completions: 1 | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: ctr0 | ||
image: ubuntu:22.04 | ||
command: ["bash", "-c"] | ||
args: ["export; sleep 9999"] | ||
resources: | ||
claims: | ||
- name: shared-gpu | ||
- name: ctr1 | ||
image: ubuntu:22.04 | ||
command: ["bash", "-c"] | ||
args: ["export; sleep 9999"] | ||
resources: | ||
claims: | ||
- name: shared-gpu | ||
resourceClaims: | ||
- name: shared-gpu | ||
resourceClaimTemplateName: single-gpu |
9 changes: 9 additions & 0 deletions
9
keps/2941-DRA-Structured-Parameters/examples/gpu-test3/single-clusterqueue-setup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
apiVersion: kueue.x-k8s.io/v1beta1 | ||
kind: LocalQueue | ||
metadata: | ||
namespace: "gpu-test3" | ||
name: "user-queue-gpu-test3" | ||
spec: | ||
clusterQueue: "cluster-queue" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters