-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhybridjob.yaml
49 lines (49 loc) · 979 Bytes
/
hybridjob.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
apiVersion: rivernet.io/v1
kind: HybridJob
metadata:
labels:
mylabel: test
name: job
namespace: default
spec:
replicaSpecs:
- max: 10
min: 1
priority: 1
template:
spec:
containers:
- image: nginx:1.3
name: ps
command: ["sleep", "150"]
ports:
- containerPort: 80
name: http
protocol: TCP
resources:
limits:
cpu: 3
requests:
cpu: 3
restartPolicy: Never
replicaType: ps
- max: 2
min: 1
priority: 2
template:
spec:
containers:
- image: nginx:1.3
name: worker
command: ["sleep", "130"]
ports:
- containerPort: 80
name: http
protocol: TCP
resources:
limits:
cpu: 3
requests:
cpu: 3
restartPolicy: Never
replicaType: worker