-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathappwrapper-sample.yaml
52 lines (52 loc) · 1.27 KB
/
appwrapper-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
apiVersion: workload.codeflare.dev/v1beta1
kind: AppWrapper
metadata:
name: appwrapper-sample
spec:
priority: 5
schedulingSpec:
minAvailable: 2
requeuing:
maxNumRequeuings: 5
resources:
GenericItems:
- custompodresources:
- requests:
nvidia.com/gpu: 8
replicas: 1
generictemplate:
apiVersion: v1
kind: Pod
metadata:
name: appwrapper-sample-1
spec:
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-sample-2
spec:
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