-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathservice.yaml
289 lines (263 loc) · 7.57 KB
/
service.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
# Copyright (c) Microsoft Corporation
# All rights reserved.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
#
# Copyright (c) Peking University 2018
#
# The software is released under the Open-Intelligence Open Source License V1.0.
# The copyright owner promises to follow "Open-Intelligence Open Source Platform
# Management Regulation V1.0", which is provided by The New Generation of
# Artificial Intelligence Technology Innovation Strategic Alliance (the AITISA).
imagelist:
# If your service have custom image, please set the detail here.
# The image name should be the same as the folder in src.
# please set your template file name in the templatelist. If there is no template in this image, fill None.
# If the docker image have prerequisite custom image, please fill it in prerequisite. If no, fill None.
base-image:
templatelist:
- None
copy:
- host-configure/
prerequisite: None
drivers:
templatelist:
- dockerfile
prerequisite: None
hadoop-run:
templatelist:
# dockerfile.template
- dockerfile
prerequisite: base-image
zookeeper:
templatelist:
- dockerfile
prerequisite: base-image
frameworklauncher:
# the copy will be placed in the path src/framworklauncher/copied_file
copy:
- ../frameworklauncher
templatelist:
- dockerfile
prerequisite: hadoop-run
rest-server:
copy:
# created by the prepare hadoop function on docker_build.py
- src/hadoop-run/hadoop
- ../rest-server
templatelist:
- dockerfile
prerequisite: None
webportal:
copy:
- ../job-tutorial
- ../webportal
templatelist:
- None
prerequisite: None
cleaning-image:
templatelist:
- dockerfile
prerequisite: None
gpu-exporter:
copy:
- ../prometheus/exporter
templatelist:
- None
prerequisite: None
grafana:
copy:
- ../grafana/dashboards
templatelist:
- None
prerequisite: None
pylon:
copy:
- ../pylon
templatelist:
- None
prerequisite: None
model-exchange:
copy:
- ../model-exchange
templatelist:
- dockerfile
prerequisite: None
model-hub:
copy:
- ../model-hub
templatelist:
- dockerfile
prerequisite: model-exchange
# Before starting your service, ensure the kubectl has been installed on your host.
# If you want to remove a certain service, comment it in the servicelist.
servicelist:
cleaning:
prerequisite:
- None
templatelist:
- cleaning.yaml
cluster-configuration:
prerequisite:
- None
templatelist:
- secret.yaml
- host-configuration/host-configuration.yaml
- gpu-configuration/gpu-configuration.yml
- gpu-configuration/gpu-configuration.json
- docker-credentials/config.json
- cleanup.sh
startscript: start.sh
stopscript: cleanup.sh
addscript: add-new-nodes.sh
updatescript: update-configmap.sh
drivers:
prerequisite:
- cluster-configuration
templatelist:
- node-label.sh
- drivers.yaml
- cleanup.sh
- add-new-nodes.sh
# Note: your script should start all your service dependency. Make sure service has completed the starting process.
startscript: start.sh
stopscript: cleanup.sh
addscript: add-new-nodes.sh
hadoop-service:
prerequisite:
- cluster-configuration
- drivers
templatelist:
- node-label.sh
- configmap-create.sh
- hadoop-name-node.yaml
- hadoop-data-node.yaml
- hadoop-resource-manager.yaml
- hadoop-node-manager.yaml
- hadoop-jobhistory.yaml
- zookeeper.yaml
- one-time-job-hadoop.yaml
- cleanup.sh
# Step 3 of 4 to set up Hadoop queues.
# Tell deploy.py to instantiate capacity-scheduler.xml.content from
# capacity-scheduler.xml.content.template.
- hadoop-configuration/capacity-scheduler.xml.content
- add-new-nodes.sh
startscript: start.sh
stopscript: cleanup.sh
addscript: add-new-nodes.sh
frameworklauncher:
prerequisite:
- cluster-configuration
- hadoop-service
templatelist:
- node-label.sh
- frameworklauncher.yaml
- cleanup.sh
- add-new-nodes.sh
startscript: start.sh
stopscript: cleanup.sh
addscript: add-new-nodes.sh
rest-server:
prerequisite:
- cluster-configuration
- frameworklauncher
templatelist:
- node-label.sh
- rest-server.yaml
- copy-templates.sh
- cleanup.sh
- add-new-nodes.sh
startscript: start.sh
stopscript: cleanup.sh
addscript: add-new-nodes.sh
webportal:
prerequisite:
- cluster-configuration
- rest-server
templatelist:
- node-label.sh
- webportal.yaml
- cleanup.sh
- add-new-nodes.sh
startscript: start.sh
stopscript: cleanup.sh
addscript: add-new-nodes.sh
prometheus:
prerequisite:
- cluster-configuration
- drivers
templatelist:
- node-label.sh
- node-exporter-ds.yaml
- prometheus-configmap.yaml
- prometheus-deployment.yaml
- cleanup.sh
- add-new-nodes.sh
startscript: start.sh
stopscript: cleanup.sh
addscript: add-new-nodes.sh
grafana:
prerequisite:
- cluster-configuration
- prometheus
templatelist:
- node-label.sh
- grafana.yaml
- cleanup.sh
- grafana-configuration/openi-clusterview-dashboard.json
- grafana-configuration/openi-nodeview-dashboard.json
- grafana-configuration/openi-jobview-dashboard.json
- grafana-configuration/openi-taskroleview-dashboard.json
- grafana-configuration/openi-taskview-dashboard.json
- grafana-configuration/prom-datasource.json
- add-new-nodes.sh
startscript: start.sh
stopscript: cleanup.sh
addscript: add-new-nodes.sh
pylon:
prerequisite:
- cluster-configuration
templatelist:
- node-label.sh
- pylon.yaml
- cleanup.sh
- add-new-nodes.sh
startscript: start.sh
stopscript: cleanup.sh
addscript: add-new-nodes.sh
model-exchange:
prerequisite:
- cluster-configuration
templatelist:
- node-label.sh
- model-exchange.yaml
- cleanup.sh
- add-new-nodes.sh
startscript: start.sh
stopscript: cleanup.sh
addscript: add-new-nodes.sh
model-hub:
prerequisite:
- cluster-configuration
templatelist:
- node-label.sh
- model-hub.yaml
- cleanup.sh
- add-new-nodes.sh
startscript: start.sh
stopscript: cleanup.sh
addscript: add-new-nodes.sh