-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-tasks-stg.yml
254 lines (254 loc) · 10.1 KB
/
init-tasks-stg.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
commands:
- name: "INIT ZONES"
description: "Initialize the zone."
commandType: "inline"
command: "http://raw.githubusercontent.com/NexClipper/klevr_tasks/master/zzz"
- name: "INSTALL P8S"
description: "Install P8S on the zone."
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/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: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/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: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_k8s_charts.sh"
- name: "GRAFANA EDIT"
description: "grafana configuration edit."
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_gf_edit.sh"
- name: "GET PROVIDER"
description: "get csp infomation."
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_whoisip.sh"
- name: "GET K8S STATUS"
description: "It monitors K8S to get status information."
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_k8s_status.sh"
- name: "GET P8S STATUS"
description: "It monitors P8S to get status information."
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_p8s_status.sh"
- name: "GET P8S CONFIGURATION"
description: "Get configuration yaml contents for Prometheus."
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_p8s_config.sh"
- name: "TEST P8S CONFIGURATION"
description: "Test configuration yaml contents for Prometheus."
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_p8s_config.sh"
- name: "UPDATE P8S CONFIGURATION"
description: "Update configuration yaml contents for Prometheus."
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_p8s_config.sh"
- name: "GET ALERT MANAGER CONFIGURATION"
description: "Get configuration yaml contents for AlertManager."
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_p8s_config.sh"
- name: "TEST ALERT MANAGER CONFIGURATION"
description: "Test configuration yaml contents for AlertManager."
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_p8s_config.sh"
- name: "UPDATE ALERT MANAGER CONFIGURATION"
description: "Update configuration yaml contents for AlertManager."
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_p8s_config.sh"
- name: "PROMETHEUS SERVICE EXPOSE"
description: "Expose P8s sub service by params"
commandType: "inline"
command: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_webstork.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: "https://raw.githubusercontent.com/NexClipper/klevr_tasks/master/cmd/provbee_check.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: "GRAFANA EDIT"
description: "grafana configuration edit."
parameter: "{}"
taskType: "atOnce"
taskTypeChangeable: false
commands:
- name: "GRAFANA EDIT"
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