-
Notifications
You must be signed in to change notification settings - Fork 0
/
09-prometheus-bot-deployment.yaml
49 lines (49 loc) · 1.19 KB
/
09-prometheus-bot-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus-bot
namespace: monitoring
labels:
app: telegram-bot
spec:
replicas: 1
selector:
matchLabels:
app: telegram-bot
template:
metadata:
labels:
app: telegram-bot
spec:
tolerations:
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 0
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 0
containers:
- name: prometheus-bot
image: "salvadorarreola/telegram-prometheus-bot:0.1.0"
imagePullPolicy: "IfNotPresent"
env:
- name: TZ
value: <Your Time Zone>
ports:
- containerPort: 9087
resources:
requests:
cpu: 100m
memory: 25Mi
limits:
cpu: 150m
memory: 50Mi
volumeMounts:
- name: config-volume
mountPath: /etc/telegrambot
volumes:
- name: config-volume
configMap:
name: prometheus-bot-config