-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdeploymet.yaml
54 lines (54 loc) · 1.28 KB
/
deploymet.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: telemonitor
namespace: app
spec:
replicas: 1
selector:
matchLabels:
app: telemonitor
template:
metadata:
labels:
app: telemonitor
spec:
hostNetwork: true
hostPID: true
containers:
- name: telemonitor
image: ghcr.io/bboysoulcn/telemonitor:latest
imagePullPolicy: Always
env:
- name: TG_CHAT_ID
value: your_chat_id
- name: TG_API_TOKEN
value: your_api_token
- name: CPU_PERCENT
value: "80"
- name: MEMORY_PERCENT
value: "80"
- name: DISK_PERCENT
value: "80"
- name: MONITOR_INTERVAL
value: "300"
- name: TG_API_BASE_URL
value: "https://api.telegram.org/bot"
- name: DISK_PATH
value: "/host"
- name: URL_LIST
value: "https://www.baidu.com,https://www.google.com,https://www.bing.com"
- name: LANGUAGE
value: "cn"
volumeMounts:
- name: localtime
mountPath: /etc/localtime
- name: host
mountPath: /host
volumes:
- name: localtime
hostPath:
path: /etc/localtime
- name: host
hostPath:
path: /