forked from d2iq-archive/dcos-commons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plan.yml
93 lines (92 loc) · 2.13 KB
/
plan.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: {{FRAMEWORK_NAME}}
scheduler:
principal: {{FRAMEWORK_PRINCIPAL}}
user: {{FRAMEWORK_USER}}
pods:
hello:
count: {{HELLO_COUNT}}
tasks:
server:
goal: RUNNING
cmd: "echo hello >> hello-container-path/output && sleep $SLEEP_DURATION"
cpus: {{HELLO_CPUS}}
memory: {{HELLO_MEM}}
volume:
path: "hello-container-path"
type: ROOT
size: {{HELLO_DISK}}
env:
SLEEP_DURATION: {{SLEEP_DURATION}}
ports:
test:
port: 9999
world:
count: {{WORLD_COUNT}}
resource-sets:
world-resource:
cpus: {{WORLD_CPUS}}
memory: {{WORLD_MEM}}
volume:
path: "world-container-path"
type: ROOT
size: {{WORLD_DISK}}
tasks:
server:
goal: RUNNING
cmd: "echo world >> world-container-path/output && sleep $SLEEP_DURATION"
resource-set: world-resource
env:
SLEEP_DURATION: {{SLEEP_DURATION}}
health-check:
cmd: "stat world-container-path/output"
interval: 5
grace-period: 30
delay: 0
timeout: 10
max-consecutive-failures: 3
custom-pod-A:
count: 1
tasks:
simple-task:
cpus: 0.1
memory: 32
goal: RUNNING
cmd: "echo custom-pod-A-simple-task && sleep 10000"
custom-pod-B:
count: 1
tasks:
simple-task:
cpus: 0.1
memory: 32
goal: RUNNING
cmd: "echo custom-pod-B-simple-task && sleep 10000"
custom-pod-C:
count: 1
tasks:
simple-task:
cpus: 0.1
memory: 32
goal: RUNNING
cmd: "echo custom-pod-C-simple-task && sleep 10000"
plans:
deploy:
strategy: serial
phases:
hello-deploy:
strategy: parallel
pod: hello
world-deploy:
strategy: parallel
pod: world
manual-plan-0:
phases:
manual-plan-0-phase:
pod: custom-pod-A
manual-plan-1:
phases:
manual-plan-1-phase:
pod: custom-pod-B
manual-plan-2:
phases:
manual-plan-2-phase:
pod: custom-pod-C