forked from TencentBlueKing/bk-nodeman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app_desc.yaml
147 lines (146 loc) · 5.33 KB
/
app_desc.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
spec_version: 2
app_version: "{{APP_VERSION}}"
app:
region: default
bk_app_code: "bk_nodeman"
bk_app_name: "节点管理"
market:
category: 运维工具
introduction: 通过节点管理,可以对蓝鲸体系中的gse agent进行管理,包括状态查询、版本更新、配置管理、健康检查、进程管理等。
display_options:
width: 1300
height: 720
is_win_maximize: True
open_mode: "new_tab"
modules:
default:
is_default: True
source_dir: src
language: Python
services:
- name: mysql
- name: bkrepo
env_variables:
- key: BKAPP_IS_V3_CONTAINER
value: "True"
description: 是否运行在V3容器版本
- key: BKAPP_USE_IAM
value: "True"
description: 是否使用权限中心
- key: PIP_VERSION
value: "20.2.3"
description: 固化pip版本
- key: STORAGE_TYPE
value: "BLUEKING_ARTIFACTORY"
description: 存储类型
- key: GSE_ENABLE_SVR_DISCOVERY
value: "True"
description: 是否启用 gse svr 服务发现,启用后,默认接入点会通过zk的方式,自动更新 gse svr 信息
svc_discovery:
bk_saas:
- bk_app_code: "bk_iam"
- bk_app_code: "bk_nodeman"
module_name: "backend"
- bk_app_code: "bk_nodeman"
module_name: "default"
processes:
web:
command: ./bin/start_web.sh
plan: 4C2G5R
replicas: 5
scripts:
pre_release_hook: bash bin/pre-release
backend:
is_default: False
source_dir: src
language: Python
services:
- name: rabbitmq
- name: redis
- name: bkrepo
shared_from: default
- name: mysql
shared_from: default
env_variables:
- key: BKAPP_IS_V3_CONTAINER
value: "True"
description: 是否运行在V3容器版本
- key: BKAPP_USE_IAM
value: "True"
description: 是否使用权限中心
- key: REDIS_MODE
value: "standalone"
description: 后台配置的Redis模式
- key: BACKEND_CONFIG
value: "True"
description: 是否启用后台配置,用于同一份代码区分SaaS和后台的差异化配置
- key: PIP_VERSION
value: "20.2.3"
description: 固化pip版本
- key: BKAPP_IS_PAAS_DEPLOY
value: "True"
description: 是否基于PaaS部署
- key: STORAGE_TYPE
value: "BLUEKING_ARTIFACTORY"
description: 存储类型
- key: GSE_ENABLE_SVR_DISCOVERY
value: "True"
description: 是否启用 gse svr 服务发现,启用后,默认接入点会通过zk的方式,自动更新gse svr信息
svc_discovery:
bk_saas:
- bk_app_code: "bk_iam"
- bk_app_code: "bk_nodeman"
module_name: "backend"
- bk_app_code: "bk_nodeman"
module_name: "default"
processes:
backend-web:
command: gunicorn --timeout 300 -w 8 -b :$PORT -k gevent wsgi:application --access-logfile - --error-logfile - --access-logformat '[%(h)s] %({request_id}i)s %(u)s %(t)s "%(r)s" %(s)s %(D)s %(b)s "%(f)s" "%(a)s"'
plan: 4C2G5R
replicas: 1
celery-beat:
command: bin/hooks/start_cmds/celery/start-beat
plan: 4C2G5R
replicas: 1
dworker:
command: bin/hooks/start_cmds/celery/start-dworker
plan: 4C2G5R
replicas: 1
bworker:
command: bin/hooks/start_cmds/celery/start-bworker
plan: 4C2G5R
replicas: 1
baworker:
command: bin/hooks/start_cmds/celery/start-bworker
plan: 4C2G5R
replicas: 1
pworker:
command: bin/hooks/start_cmds/celery/start-pworker
plan: 4C2G5R
replicas: 1
psworker:
command: bin/hooks/start_cmds/celery/start-psworker
plan: 4C2G5R
replicas: 1
paworker:
command: bin/hooks/start_cmds/celery/start-pworker
plan: 4C2G5R
replicas: 1
sync-host:
command: python manage.py sync_host_event
plan: 4C2G5R
replicas: 1
sync-host-re:
command: python manage.py sync_host_relation_event
plan: 4C2G5R
replicas: 1
sync-host-pr:
command: python manage.py sync_process_event
plan: 4C2G5R
replicas: 1
resource-w:
command: python manage.py apply_resource_watched_events
plan: 4C2G5R
replicas: 1
scripts:
pre_release_hook: bash bin/pre-release