This repository has been archived by the owner on Feb 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathappwrapper-podgroup-sample.yaml
65 lines (65 loc) · 1.72 KB
/
appwrapper-podgroup-sample.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
apiVersion: workload.codeflare.dev/v1beta1
kind: AppWrapper
metadata:
name: appwrapper-podgroup-sample
spec:
priority: 5
schedulingSpec:
minAvailable: 2
requeuing:
maxNumRequeuings: 5
resources:
GenericItems:
- generictemplate:
apiVersion: scheduling.sigs.k8s.io/v1alpha1
kind: PodGroup
metadata:
name: podgroup-1
spec:
minMember: 2
- custompodresources:
- requests:
nvidia.com/gpu: 8
replicas: 1
generictemplate:
apiVersion: v1
kind: Pod
metadata:
name: appwrapper-podgroup-sample-1
labels:
pod-group.scheduling.sigs.k8s.io: podgroup-1
spec:
schedulerName: scheduler-plugins-scheduler
restartPolicy: Never
containers:
- name: busybox
image: quay.io/project-codeflare/busybox
command: ["sh", "-c", "sleep 5"]
resources:
requests:
nvidia.com/gpu: 8
limits:
nvidia.com/gpu: 8
- custompodresources:
- requests:
nvidia.com/gpu: 4
replicas: 1
generictemplate:
apiVersion: v1
kind: Pod
metadata:
name: appwrapper-podgroup-sample-2
labels:
pod-group.scheduling.sigs.k8s.io: podgroup-1
spec:
schedulerName: scheduler-plugins-scheduler
restartPolicy: Never
containers:
- name: busybox
image: quay.io/project-codeflare/busybox
command: ["sh", "-c", "sleep 10"]
resources:
requests:
nvidia.com/gpu: 4
limits:
nvidia.com/gpu: 4