Skip to content

Commit 3dc5091

Browse files
committed
change to batch job
1 parent f5bd861 commit 3dc5091

File tree

1 file changed

+40
-35
lines changed

1 file changed

+40
-35
lines changed

test/e2e-kuttl/quota-forest/06-install.yaml

Lines changed: 40 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,43 @@ spec:
1313
resources:
1414
metadata: {}
1515
GenericItems:
16-
- metadata: {}
17-
replicas: 1
18-
generictemplate:
19-
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
20-
kind: StatefulSet
21-
metadata:
22-
name: job-gold-high-pri-1replica
23-
namespace: test
24-
labels:
25-
app: job-gold-high-pri-1replica
26-
spec:
27-
selector:
28-
matchLabels:
29-
app: job-gold-high-pri-1replica
30-
replicas: 1
31-
template:
32-
metadata:
33-
labels:
34-
app: job-gold-high-pri-1replica
35-
size: "1"
36-
spec:
37-
containers:
38-
- name: job-gold-high-pri-1replica
39-
image: registry.access.redhat.com/ubi8/ubi:latest
40-
command:
41-
- /bin/sh
42-
- -c
43-
- while true; do sleep 10; done
44-
resources:
45-
requests:
46-
cpu: 1100m
47-
memory: 95Mi
48-
limits:
49-
cpu: 1100m
50-
memory: 95Mi
16+
- replicas: 1
17+
completionstatus: Complete
18+
custompodresources:
19+
- replicas: 1
20+
requests:
21+
cpu: 8000m
22+
memory: 15Gi
23+
limits:
24+
cpu: 8000m
25+
memory: 15Gi
26+
generictemplate:
27+
apiVersion: batch/v1
28+
kind: Job
29+
metadata:
30+
name: job-gold-high-pri-1replica
31+
labels:
32+
appwrapper.mcad.ibm.com: job-gold-high-pri-1replica
33+
namespace: test
34+
spec:
35+
parallelism: 1
36+
completions: 1
37+
template:
38+
metadata:
39+
labels:
40+
appwrapper.mcad.ibm.com: job-gold-high-pri-1replica
41+
namespace: test
42+
spec:
43+
containers:
44+
- name: job-gold-high-pri-1replica
45+
image: ubi8-minimal:latest
46+
command: [ "/bin/bash", "-c", "--" ]
47+
args: [ "sleep infinity" ]
48+
resources:
49+
requests:
50+
memory: 100Mi
51+
cpu: "900m"
52+
limits:
53+
memory: 100Mi
54+
cpu: "900m"
55+
restartPolicy: Never

0 commit comments

Comments
 (0)