forked from AutohomeCorp/frostmourne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frostmourne-monitor-deployment.yaml
90 lines (85 loc) · 2.59 KB
/
frostmourne-monitor-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: frostmourne-monitor
name: frostmourne-monitor
namespace: frostmourne
spec:
replicas: 2 # 启动pod数量
selector:
matchLabels:
run: frostmourne-monitor
template:
metadata:
labels:
run: frostmourne-monitor
spec:
containers:
- args:
- bash
- -c
- /opt/frostmourne/start.sh frostmourne-monitor
env:
# mysql
- name: datasource_frostmourne_url
value: jdbc:mysql://${mysql.host}/frostmourne?useSSL=false&verifyServerCertificate=false&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&serverTimezone=GMT%2B8
- name: datasource_frostmourne_username
value:
- name: datasource_frostmourne_password
value:
# frostmourne
- name: frostmourne_message_title
value: "霜之哀伤监控平台"
- name: alarmlog_reserve_days
value: "30"
- name: frostmourne_monitor_address # 配置用于生成日志查询地址和调度触发监控改运行
value:
- name: initial_password
value:
# ldap(可选)
- name: ldap_enabled
value: "true"
- name: spring_ldap_urls
value:
- name: spring_ldap_username
value:
- name: spring_ldap_password
value:
- name: spring_ldap_base
value:
- name: spring_ldap_auth_searchFilter
value:
- name: spring_ldap_auth_searchFilter
value:
# email(可选)
- name: email.sender
value:
- name: email.sender-password
value:
- name: email.smtp-auth
value: "true"
- name: email.smtp-host
value:
- name: email.smtp-port
value:
# wechat(可选)
- name: wechat.corpid
value:
- name: wechat.agentid
value:
- name: wechat.secret
value:
image: registry.cn-hangzhou.aliyuncs.com/kechangqing/frostmourne:1.0
name: frostmourne-monitor
imagePullPolicy: Always
resources:
limits:
cpu: 2
memory: 4096Mi
requests:
cpu: 100m
memory: 256Mi
ports:
- containerPort: 10054
restartPolicy: Always