forked from project-codeflare/multi-cluster-app-dispatcher
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpreempt-exp.yaml
56 lines (56 loc) · 1.52 KB
/
preempt-exp.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
apiVersion: workload.codeflare.dev/v1beta1
kind: AppWrapper
metadata:
name: defaultaw-schd-spec-with-timeout-1
namespace: default
spec:
schedulingSpec:
minAvailable: 1
requeuing:
timeInSeconds: 120
growthType: "exponential"
priority: 9
resources:
GenericItems:
- replicas: 1
completionstatus: Complete
custompodresources:
- replicas: 1
requests:
cpu: 500m
memory: 128M
nvidia.com/gpu: 0
limits:
cpu: 500m
memory: 128M
nvidia.com/gpu: 0
generictemplate:
apiVersion: batch/v1
kind: Job
metadata:
namespace: default
name: defaultaw-schd-spec-with-timeout-1
labels:
appwrapper.mcad.ibm.com: defaultaw-schd-spec-with-timeout-1
spec:
parallelism: 1
completions: 1
template:
metadata:
namespace: default
labels:
appwrapper.mcad.ibm.com: "defaultaw-schd-spec-with-timeout-1"
spec:
containers:
- name: defaultaw-schd-spec-with-timeout-1
image: ubi8-minimal:latest
command: [ "/bin/bash", "-c", "--" ]
args: [ "sleep 10" ]
resources:
requests:
memory: "128Mi"
cpu: "500m"
limits:
memory: "128Mi"
cpu: "500m"
restartPolicy: Never