forked from project-codeflare/mcad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboxed-deployment.yaml
38 lines (38 loc) · 906 Bytes
/
boxed-deployment.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
apiVersion: workload.codeflare.dev/v1alpha1
kind: BoxedJob
metadata:
name: test
annotations:
kueue.x-k8s.io/queue-name: user-queue
spec:
suspend: true
components:
- podSets:
- replicas: 2
path: template.spec.template
template:
apiVersion: apps/v1
kind: Deployment
metadata:
name: test
labels:
app: test
spec:
replicas: 2
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
workload.codeflare.dev/boxedjob: sample
spec:
terminationGracePeriodSeconds: 0
containers:
- name: busybox
image: quay.io/project-codeflare/busybox:1.36
command: ["sh", "-c", "sleep 10000"]
resources:
requests:
cpu: 2