-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-tasks-hana.yml
393 lines (393 loc) · 14 KB
/
init-tasks-hana.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
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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
commands:
- name: "INIT ZONES"
description: "Initialize the zone."
commandType: "inline"
command: "/zzz"
- name: "UPDATE BUSYBEE"
description: "Initialize the zone."
commandType: "inline"
command: "/cmd/provbee_busybee_update.sh"
- name: "INSTALL P8S"
description: "Install P8S on the zone."
commandType: "inline"
command: "/cmd/provbee_p8s_install.sh"
params:
- name: "Provbee HOST"
paramKey: "provbee_svc"
paramValue: "provbee-service"
valueType: "TEXT"
- name: "Default K8S namespace"
paramKey: "default_namespace"
paramValue: "nexclipper"
valueType: "TEXT"
- name: "Default K8S namespace"
paramKey: "tobs_yaml"
paramValue: "https://raw.githubusercontent.com/NexClipper/helm-charts/main/tobs/nexclipper_values_dev.yaml"
valueType: "TEXT"
- name: "INSTALL GLOBAL P8S"
description: "Install GLOBAL P8S on the zone."
commandType: "inline"
command: "/cmd/provbee_p8s_install.sh"
params:
- name: "Provbee HOST"
paramKey: "provbee_svc"
paramValue: "provbee-service"
valueType: "TEXT"
- name: "Default K8S namespace"
paramKey: "default_namespace"
paramValue: "nexclipper"
valueType: "TEXT"
- name: "Default GLOBAL P8S"
paramKey: "tobs_yaml"
paramValue: "https://raw.githubusercontent.com/NexClipper/helm-charts/main/tobs/nexclipper_global_values.yaml"
valueType: "TEXT"
- name: "INSTALL K8S CHARTS"
description: "Install K8S by charts on the zone."
commandType: "inline"
command: "/cmd/provbee_k8s_charts.sh"
- name: "ADD EXPORTER LABELS"
description: "add exporter labels by klevr."
commandType: "reserved"
command: "AddExporterLabel"
- name: "GET EXPORTER LABELS"
description: "get exporter labels by klevr."
commandType: "reserved"
command: "MonitorExportersLabel"
- name: "GRAFANA EDIT"
description: "grafana configuration edit."
commandType: "inline"
command: "/cmd/provbee_gf_edit.sh"
- name: "GRAFANA SET CONFIG"
description: "grafana configuration set."
commandType: "inline"
command: "/cmd/provbee_gf_set.sh"
- name: "GRAFANA GET AUTH"
description: "grafana get auth key."
commandType: "inline"
command: "/cmd/provbee_gf_auth.sh"
- name: "GET PROVIDER"
description: "get csp infomation."
commandType: "inline"
command: "/cmd/provbee_whoisip.sh"
- name: "GET K8S STATUS"
description: "It monitors K8S to get status information."
commandType: "inline"
command: "/cmd/provbee_k8s_status.sh"
- name: "GET P8S STATUS"
description: "It monitors P8S to get status information."
commandType: "inline"
command: "/cmd/provbee_p8s_status.sh"
- name: "GET P8S CONFIGURATION"
description: "Get configuration yaml contents for Prometheus."
commandType: "inline"
command: "/cmd/provbee_p8s_config.sh"
- name: "TEST P8S CONFIGURATION"
description: "Test configuration yaml contents for Prometheus."
commandType: "inline"
command: "/cmd/provbee_p8s_config.sh"
- name: "UPDATE P8S CONFIGURATION"
description: "Update configuration yaml contents for Prometheus."
commandType: "inline"
command: "/cmd/provbee_p8s_config.sh"
- name: "GET ALERT MANAGER CONFIGURATION"
description: "Get configuration yaml contents for AlertManager."
commandType: "inline"
command: "/cmd/provbee_p8s_config.sh"
- name: "TEST ALERT MANAGER CONFIGURATION"
description: "Test configuration yaml contents for AlertManager."
commandType: "inline"
command: "/cmd/provbee_p8s_config.sh"
- name: "UPDATE ALERT MANAGER CONFIGURATION"
description: "Update configuration yaml contents for AlertManager."
commandType: "inline"
command: "/cmd/provbee_p8s_config.sh"
- name: "PROMETHEUS SERVICE EXPOSE"
description: "Expose P8s sub service by params"
commandType: "inline"
command: "/cmd/provbee_webstork.sh"
- name: "MONITOR BY METRICARK"
description: "Get monitoring data by metricark"
commandType: "inline"
command: "/cmd/provbee_metricark.sh"
- name: "GET OPENSTACK NODES BY METRICARK"
description: "Get openstack nodes info data by metricark"
commandType: "inline"
command: "/cmd/provbee_metricark_openstack.sh"
- name: "GET OPENSTACK PROJECTS BY METRICARK"
description: "Get openstack projects info data by metricark"
commandType: "inline"
command: "/cmd/provbee_metricark_api.sh"
- name: "STOP TASK"
description: "Stop other running task using targetTaskID as parameter.\nEven if the request to stop a running task is successful, the task may be completed before stopping."
commandType: "reserved"
command: "StopTask"
params:
- name: "Target task ID"
description: "task ID to be stopped"
paramKey: "targetTaskId"
paramValue: ""
valueType: "NUMBER"
- name: "FORCE SHUTDOWN AGENT"
description: "Ignore the ongoing task and stop the agent immediately."
commandType: "reserved"
command: "ForceShutdownAgent"
- name: "GRACEFUL SHUTDOWN AGENT"
description: "When all ongoing AtOnce tasks are finished, the agent is terminated.\nTasks other than AtOnce are forcibly terminated."
commandType: "reserved"
command: "GracefulShutdownAgent"
- name: "CHECK PROVBEE"
description: "provbee check"
commandType: "inline"
command: "/cmd/provbee_check.sh"
- name: "METRICARK PROMQL"
description: "Call metricark for PromQL excution through busybee of provbee"
commandType: "inline"
command: "/cmd/provbee_metricark_promql.sh"
- name: "METRICARK API"
description: "Call metricark for API excution through busybee of provbee"
commandType: "inline"
command: "/cmd/provbee_metricark_api.sh"
tasks:
- name: "INIT ZONES"
description: "Initialize the zone of when the primary agent is activated, if the zone has not yet been initialized."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "INIT ZONES"
commandType: "inline"
recover: false
- name: "INSTALL P8S STACK"
description: "Install P8S stack on the zone."
parameter: "{\"tobs_yaml\":\"https://raw.githubusercontent.com/NexClipper/helm-charts/main/tobs/nexclipper_values_dev.yaml\"}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "CHECK PROVBEE"
commandType: "inline"
recover: false
- name: "INSTALL P8S"
commandType: "inline"
recover: false
- name: "INSTALL GLOBAL P8S STACK"
description: "Install Global P8S stack on the zone."
parameter: "{\"tobs_yaml\":\"https://raw.githubusercontent.com/NexClipper/helm-charts/main/tobs/nexclipper_global_values.yaml\"}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "CHECK PROVBEE"
commandType: "inline"
recover: false
- name: "INSTALL GLOBAL P8S"
commandType: "inline"
recover: false
- name: "INSTALL K8S CHARTS"
description: "Install K8S exporter by charts on the zone."
parameter: "{\"chart_url\":\"https://raw.githubusercontent.com/NexClipper/exporterhub.io/main/contents/{EXPORTER_NAME}/helm-chart/values.yaml\"}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "CHECK PROVBEE"
commandType: "inline"
recover: false
- name: "INSTALL K8S CHARTS"
commandType: "inline"
recover: false
- name: "ADD EXPORTER LABELS"
description: "add K8S exporter labels by klevr"
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "ADD EXPORTER LABELS"
commandType: "reserved"
recover: false
- name: "MONITOR EXPORTER LABELS"
description: "It monitors exporter labels periodically to get exporter label information."
parameter: "{}"
taskType: "iteration"
taskTypeChangeable: true
commands:
- name: "GET EXPORTER LABELS"
commandType: "reserved"
recover: false
- name: "MONITOR BY METRICARK"
description: "Get monitoring data by metricark"
parameter: "{\"metricark_cmd\": \"metricark\"}"
taskType: "iteration"
taskTypeChangeable: false
commands:
- name: "MONITOR BY METRICARK"
commandType: "inline"
recover: false
- name: "GET OPENSTACK NODES BY METRICARK"
description: "Get openstack nodes info data by metricark"
parameter: "{\"metricark_cmd\":\"metricark_openstack_nodes\"}"
taskType: "iteration"
taskTypeChangeable: false
commands:
- name: "GET OPENSTACK NODES BY METRICARK"
commandType: "inline"
recover: false
- name: "GET OPENSTACK NODES BY METRICARK PROMQL"
description: "Get openstack nodes info data by metricark promql."
parameter: "{\"metricark_cmd\":\"metricark_api\"}"
taskType: "iteration"
taskTypeChangeable: false
commands:
- name: "METRICARK API"
commandType: "inline"
recover: false
- name: "GET OPENSTACK PROJECTS BY METRICARK"
description: "Get openstack nodes info data by metricark"
parameter: "{}"
taskType: "iteration"
taskTypeChangeable: false
commands:
- name: "GET OPENSTACK PROJECTS BY METRICARK"
commandType: "inline"
recover: false
- name: "GET OPENSTACK PROJECTS BY METRICARK PROMQL"
description: "Get openstack nodes info data by metricark promql."
parameter: "{\"metricark_cmd\":\"metricark_api\"}"
taskType: "iteration"
taskTypeChangeable: false
commands:
- name: "METRICARK API"
commandType: "inline"
recover: false
- name: "GRAFANA EDIT"
description: "grafana configuration edit."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "GRAFANA EDIT"
commandType: "inline"
recover: false
- name: "GRAFANA SET CONFIG"
description: "grafana configuration set."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "GRAFANA SET CONFIG"
commandType: "inline"
recover: false
- name: "GRAFANA GET AUTH"
description: "grafana get auth key."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "GRAFANA GET AUTH"
commandType: "inline"
recover: false
- name: "GET PROVIDER"
description: "get csp infomation."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "GET PROVIDER"
commandType: "inline"
recover: false
- name: "MONITOR CLUSTER STATUS"
description: "It monitors K8S periodically to get status information."
parameter: "{}"
taskType: "iteration"
taskTypeChangeable: true
commands:
- name: "GET K8S STATUS"
commandType: "inline"
recover: false
- name: "GET P8S CONFIGURATION"
description: "Get P8S configuration yaml contents."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "GET P8S CONFIGURATION"
commandType: "inline"
recover: false
- name: "TEST P8S CONFIGURATION"
description: "Test P8S configuration yaml contents."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "TEST P8S CONFIGURATION"
commandType: "inline"
recover: false
- name: "UPDATE P8S CONFIGURATION"
description: "Update P8S configuration yaml contents."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "UPDATE P8S CONFIGURATION"
commandType: "inline"
recover: false
- name: "GET ALERT MANAGER CONFIGURATION"
description: "Get ALERT MANAGER configuration yaml contents."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "GET ALERT MANAGER CONFIGURATION"
commandType: "inline"
recover: false
- name: "TEST ALERT MANAGER CONFIGURATION"
description: "Test ALERT MANAGER configuration yaml contents."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "TEST ALERT MANAGER CONFIGURATION"
commandType: "inline"
recover: false
- name: "UPDATE ALERT MANAGER CONFIGURATION"
description: "Update ALERT MANAGER configuration yaml contents."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "UPDATE ALERT MANAGER CONFIGURATION"
commandType: "inline"
recover: false
- name: "PROMETHEUS SERVICE EXPOSE"
description: "Expose P8s sub service by params"
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "PROMETHEUS SERVICE EXPOSE"
commandType: "inline"
recover: false
- name: "FORCE SHUTDOWN AGENT"
description: "Ignore the ongoing task and stop the agent immediately."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "FORCE SHUTDOWN AGENT"
commandType: "reserved"
recover: false
- name: "GET METRICARK P8S QUERY"
description: "Initialize the zone of when the primary agent is activated, if the zone has not yet been initialized."
parameter: "{\"metricark_cmd\":\"metricark_promql\"}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "METRICARK PROMQL"
commandType: "inline"
recover: false
- name: "GET METRICARK API"
description: "Call metricark api."
parameter: "{\"metricark_cmd\":\"metricark_api\"}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "METRICARK API"
commandType: "inline"
recover: false