-
Notifications
You must be signed in to change notification settings - Fork 377
/
erda.yml
538 lines (538 loc) · 15.1 KB
/
erda.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
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
version: "2.0"
meta:
ERDA_COMPONENT: ""
values:
development:
request_cpu: 0.1
request_mem: 128
replicas: 1
test:
request_cpu: 0.1
request_mem: 128
log_service_replicas: 1
erda_server_request_cpu: 1
erda_server_request_mem: 2048
production:
nfs_root: "<%$.Storage.MountPoint%>"
gittar_root: "<%$.Storage.GittarDataPath%>"
replicas: 2
request_cpu: 0.1
request_mem: 128
envs:
ETCDCTL_API: "3"
MONITOR_ADDR: monitor:7096
COLLECTOR_ADDR: collector:7076
PIPELINE_ADDR: pipeline:3081
ERDA_SERVER_ADDR: erda-server:9095
OPENAPI_ADDR: erda-server:9529
DOP_ADDR: erda-server:9095
DOP_GRPC_ADDR: erda-server:8096
CMP_ADDR: erda-server:9095
CMP_GRPC_ADDR: erda-server:8096
MSP_ADDR: erda-server:9095
MSP_GRPC_ADDR: erda-server:8096
ORCHESTRATOR_ADDR: orchestrator:8081
AI_PROXY_ADDR: ai-proxy:8081
OTEL_TRACES_ENABLED: false
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://collector:7076/api/otlp/v1/traces
OTEL_TRACES_SAMPLER_ARG: 0.1
CLUSTER_MANAGER_ADDR: cluster-manager:9094
CLUSTER_DIALER_ADDR: cluster-manager:80
TRACE_HOOK_ENABLE: true
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: "ignore"
OPENAPI_DYNAMIC_ROUTES: true # Whether to allow dynamic registration of routes to openapi
services:
erda-server:
cmd: /erda/cmd/erda-server/bin
envs:
DEBUG: "false"
AVATAR_STORAGE_URL: "file:///avatars"
CMDB_CONTAINER_TOPIC: "spot-metaserver_container"
CMDB_GROUP: "spot_cmdb_group"
CMDB_HOST_TOPIC: "spot-metaserver_host"
LICENSE_KEY: "XWoPm8I3FZuDclhuOhZ+qRPVHjXKCwSgZEOTyrMgtJg6f0Kz7QR0CyVN1ZWgbiou/OyABe7HyK1yVxDdeP1JuXcfOoGOdChTyiQfP5sdXUbferq5UkK7S44lMjNmzURlbdX8smSa13+8FQyDqz2BpDcBKMRfn2kKuF4n6n9Ls7HyVV7oWSKreEyIH3991Ug2grNEpcKip3ISVY7eGJ3uoahC9zs4fla1dzR47e5dgppHtf5WBjFgiSS+5qRi2mYa"
LISTEN_ADDR: ":9526"
UC_CLIENT_ID: "dice"
UC_CLIENT_SECRET: "secret"
CREATE_ORG_ENABLED: "false"
EXTENSION_MENU: "{\"流水线任务\":[\"source_code_management:代码管理\",\"build_management:构建管理\",\"deploy_management:部署管理\",\"version_management:版本管理\",\"test_management:测试管理\",\"data_management:数据治理\",\"custom_task:自定义任务\"],\"扩展服务\":[\"database:存储\",\"distributed_cooperation:分布式协作\",\"search:搜索\",\"message:消息\",\"content_management:内容管理\",\"security:安全\",\"traffic_load:流量负载\",\"monitoring&logging:监控&日志\",\"content:文本处理\",\"image_processing:图像处理\",\"document_processing:文件处理\",\"sound_processing:音频处理\",\"custom:自定义\",\"general_ability:通用能力\",\"new_retail:新零售能力\",\"srm:采供能力\",\"solution:解决方案\"]}"
RELEASE_GC_SWITCH: "true"
RELEASE_MAX_TIME_RESERVED: "72"
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: "ignore"
UC_AUDITOR_CRON: "0 */1 * * * ?"
UC_AUDITOR_PULL_SIZE: "30"
ERDA_SERVER_ADDR: "localhost:9095"
DOP_ADDR: "localhost:9095"
CMP_ADDR: "localhost:9095"
MSP_ADDR: "localhost:9095"
# cmp
ERDA_NAMESPACE: "default"
ERDA_HELM_CHART_VERSION: "1.1.0"
ports:
- port: 9529
protocol: "TCP"
l4_protocol: "TCP"
expose: true
- port: 9095
protocol: TCP
l4_protocol: TCP
default: true
- port: 8096
protocol: TCP
l4_protocol: TCP
- port: 9432
protocol: "TCP"
l4_protocol: "TCP"
- port: 9431
protocol: "TCP"
l4_protocol: "TCP"
- port: 7098
protocol: "TCP"
l4_protocol: "TCP"
expose:
- 9529
binds:
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-ca.pem:/certs/etcd-ca.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client.pem:/certs/etcd-client.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client-key.pem:/certs/etcd-client-key.pem:ro"
- "${nfs_root:/netdata}/avatars:/avatars:rw"
- "${nfs_root:/netdata}/dice/cmdb/files:/files:rw"
resources:
cpu: ${erda_server_request_cpu:1}
max_cpu: 1
mem: ${erda_server_request_mem:2048}
max_mem: 2048
network:
mode: "container"
deployments:
replicas: ${replicas:2}
labels:
GROUP: "dice"
health_check:
http:
port: 9095
path: "/api/healthy"
duration: 120
exec: { }
cluster-manager:
cmd: /erda/cmd/cluster-manager/bin
ports:
- port: 80
protocol: TCP
l4_protocol: TCP
- port: 9094
protocol: TCP
l4_protocol: TCP
- port: 9095
protocol: TCP
l4_protocol: TCP
- port: 9093
protocol: TCP
l4_protocol: TCP
envs:
DEBUG: "false"
resources:
cpu: ${request_cpu:2}
max_cpu: 2
mem: ${request_mem:2048}
max_mem: 2048
network:
mode: "container"
binds:
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-ca.pem:/certs/etcd-ca.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client.pem:/certs/etcd-client.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client-key.pem:/certs/etcd-client-key.pem:ro"
deployments:
replicas: ${replicas:2}
labels:
GROUP: "dice"
health_check:
http: { }
exec: { }
cluster-agent:
cmd: /erda/cmd/cluster-agent/bin
ports: [ ]
envs:
DEBUG: "false"
resources:
cpu: ${request_cpu:1}
max_cpu: 1
mem: ${request_mem:1024}
max_mem: 1024
network:
mode: "container"
deployments:
replicas: 1
labels:
GROUP: "dice"
health_check:
http: { }
exec:
cmd: "ls"
k8s_snippet:
container:
securityContext:
privileged: true
monitor-agent-injector:
cmd: /erda/cmd/monitor/agent-injector/bin
ports:
- port: 8443
protocol: "TCP"
l4_protocol: "TCP"
- port: 8080
protocol: "TCP"
l4_protocol: "TCP"
- port: 7080
protocol: "TCP"
l4_protocol: "TCP"
envs:
DEBUG: "false"
resources:
cpu: ${request_cpu:0.5}
max_cpu: 0.5
mem: ${request_mem:1024}
max_mem: 1024
network:
mode: "container"
deployments:
replicas: 1
labels:
GROUP: "dice"
health_check:
http:
port: 8080
path: "/health"
duration: 120
binds:
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/erda:/etc/server/certs:ro"
collector:
labels:
cpu_bound: "true"
cmd: /erda/cmd/monitor/collector/bin
ports:
- port: 7076
protocol: "TCP"
l4_protocol: "TCP"
expose: true
- port: 7098
protocol: "TCP"
l4_protocol: "TCP"
- port: 7078
protocol: "TCP"
l4_protocol: "TCP"
envs:
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: "ignore"
COLLECTOR_BROWSER_SAMPLING_RATE: "100"
COLLECTOR_ENABLE: "true"
resources:
cpu: ${request_cpu:1}
mem: ${request_mem:1024}
max_cpu: 1
max_mem: 1024
network:
mode: "container"
deployments:
replicas: ${replicas:2}
labels:
GROUP: "spot-v2"
expose:
- 7076
health_check:
http:
port: 7076
path: "/api/health"
duration: 120
exec: { }
hosts: [ ]
binds: [ ]
# deploy on edge cluster with different config
collector-agent:
labels:
cpu_bound: "true"
cmd: /erda/cmd/monitor/collector/bin
ports:
- port: 7076
protocol: "TCP"
l4_protocol: "TCP"
expose: true
- port: 7098
protocol: "TCP"
l4_protocol: "TCP"
- port: 7078
protocol: "TCP"
l4_protocol: "TCP"
envs:
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: "ignore"
COLLECTOR_BROWSER_SAMPLING_RATE: "100"
COLLECTOR_ENABLE: "true"
resources:
cpu: ${request_cpu:0.5}
mem: ${request_mem:1024}
max_cpu: 1
max_mem: 2048
network:
mode: "container"
deployments:
replicas: 1
labels:
GROUP: "spot-v2"
health_check:
http:
port: 7076
path: "/api/health"
duration: 120
exec: { }
gittar:
cmd: /erda/cmd/gittar/bin
ports:
- port: 5566
protocol: "TCP"
l4_protocol: "TCP"
expose: true
envs:
GITTAR_BRANCH_FILTER: "master,develop,feature/*,support/*,release/*,hotfix/*"
GITTAR_PORT: "5566"
UC_CLIENT_ID: "dice"
UC_CLIENT_SECRET: "secret"
resources:
cpu: ${request_cpu:1}
max_cpu: 1
mem: ${request_mem:1536}
max_mem: 1536
network:
mode: "container"
binds:
- "${gittar_root:/netdata/dice/gittar}:/repository:rw"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-ca.pem:/certs/etcd-ca.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client.pem:/certs/etcd-client.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client-key.pem:/certs/etcd-client-key.pem:ro"
deployments:
replicas: 1
labels:
GROUP: "devops"
expose:
- 5566
health_check:
http: { }
exec: { }
hepa:
cmd: /erda/cmd/hepa/bin
ports:
- port: 8080
protocol: "TCP"
l4_protocol: "TCP"
expose: true
resources:
cpu: ${request_cpu:0.5}
mem: 512
max_cpu: 0.5
network:
mode: "container"
deployments:
replicas: ${replicas:1}
labels:
GROUP: "addons"
expose:
- 8080
health_check:
http:
port: 8080
path: "/health"
duration: 120
exec: { }
monitor:
cmd: /erda/cmd/monitor/monitor/bin
ports:
- port: 7096
protocol: "TCP"
l4_protocol: "TCP"
- port: 7098
protocol: "TCP"
l4_protocol: "TCP"
- port: 7080
protocol: "TCP"
l4_protocol: "TCP"
envs:
LOG_LEVEL: INFO
resources:
cpu: ${request_cpu:0.5}
mem: ${request_mem:512}
max_cpu: 1
max_mem: 1024
network:
mode: "container"
deployments:
replicas: ${replicas:2}
labels:
GROUP: "spot-v2"
health_check:
http:
port: 7096
path: "/api/health"
duration: 120
exec: { }
expose: [ ]
hosts: [ ]
binds:
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-ca.pem:/certs/etcd-ca.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client.pem:/certs/etcd-client.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client-key.pem:/certs/etcd-client-key.pem:ro"
orchestrator:
cmd: /erda/cmd/orchestrator/bin
ports:
- port: 8081
protocol: "TCP"
l4_protocol: "TCP"
- port: 7080
protocol: "TCP"
l4_protocol: "TCP"
- port: 7098
protocol: "TCP"
l4_protocol: "TCP"
envs:
DEBUG: "false"
TENANT_GROUP_KEY: "58dcbf490ef3"
COLLECTOR_SIDECAR_IMAGE: "registry.erda.cloud/erda/erda-fluent-bit:2.1-alpha-20220329155354-3fcba88"
resources:
cpu: ${request_cpu:1}
max_cpu: 1
mem: ${request_mem:256}
max_mem: 2048
network:
mode: "container"
binds:
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-ca.pem:/certs/etcd-ca.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client.pem:/certs/etcd-client.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client-key.pem:/certs/etcd-client-key.pem:ro"
deployments:
replicas: ${replicas:1}
labels:
GROUP: "dice"
health_check:
http:
port: 8081
path: "/info"
duration: 120
exec: { }
pipeline:
cmd: /erda/cmd/pipeline/bin
ports:
- port: 3081
protocol: "TCP"
l4_protocol: "TCP"
- port: 30810
protocol: "TCP"
l4_protocol: "TCP"
envs:
DEBUG: "false"
PIPELINE_STORAGE_URL: "file:///devops/storage"
resources:
cpu: ${request_cpu:1}
max_cpu: 1
mem: ${request_mem:1536}
max_mem: 1536
network:
mode: "container"
binds:
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-ca.pem:/certs/etcd-ca.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client.pem:/certs/etcd-client.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client-key.pem:/certs/etcd-client-key.pem:ro"
deployments:
replicas: ${replicas:2}
labels:
GROUP: "devops"
health_check:
http:
port: 3081
path: "/ping"
duration: 120
exec: { }
streaming:
labels:
cpu_bound: "true"
cmd: /erda/cmd/monitor/streaming/bin
ports:
- port: 7091
protocol: "TCP"
l4_protocol: "TCP"
- port: 7098
protocol: "TCP"
l4_protocol: "TCP"
envs:
BROWSER_ENABLE: "true"
BROWSER_GROUP_ID: "spot-monitor-browser"
LOG_GROUP_ID: "spot-monitor-log"
LOG_STORE_ENABLE: "true"
LOG_TTL: "168h"
METRIC_ENABLE: "true"
METRIC_GROUP_ID: "spot-monitor-metrics"
METRIC_INDEX_TTL: "192h"
TRACE_ENABLE: "true"
TRACE_GROUP_ID: "spot-monitor-trace"
TRACE_TTL: "168h"
LOG_LEVEL: INFO
EVENT_GROUP_ID: "spot-monitor-event"
ENTITY_GROUP_ID: "spot-monitor-entity"
resources:
cpu: ${request_cpu:0.5}
mem: ${request_mem:1024}
max_cpu: 1.5
max_mem: 4096
network:
mode: "container"
binds:
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-ca.pem:/certs/etcd-ca.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client.pem:/certs/etcd-client.pem:ro"
- "${nfs_root:/netdata}/dice-ops/dice-config/certificates/etcd-client-key.pem:/certs/etcd-client-key.pem:ro"
deployments:
replicas: ${replicas:4}
labels:
GROUP: "spot-v2"
health_check:
http:
port: 7091
path: "/api/health"
duration: 120
exec: { }
log-service:
cmd: /erda/cmd/monitor/log-service/bin
ports:
- port: 7099
protocol: "TCP"
l4_protocol: "TCP"
- port: 7098
protocol: "TCP"
l4_protocol: "TCP"
envs:
LOG_SERVICE_INSTANCE_ID: "30563290-f3a8-4f8f-b42b-cc5d3b8ac7c7"
LOG_KAFKA_TOPICS: "spot-container-log"
LOG_TOPICS: "spot-container-log"
LOG_METRICS_GROUP_ID: "spot-log-metrics"
#LOGS_ES_URL: ""
#LOGS_ES_SECURITY_ENABLE: "false"
#LOGS_ES_SECURITY_USERNAME: ""
#LOGS_ES_SECURITY_PASSWORD: ""
resources:
cpu: ${request_cpu:1}
mem: ${request_mem:1024}
max_cpu: 1.5
max_mem: 1024
network:
mode: "container"
deployments:
replicas: ${log_service_replicas:2}
labels:
GROUP: "spot-v2"
health_check:
http:
port: 7099
path: "/api/health"
duration: 120
exec: { }
addons:
infos:
plan: "custom:basic"
options:
version: "1.0.0"
mysql:
plan: "mysql:basic"