-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeployment.yml
86 lines (86 loc) · 2.2 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: gotd
name: bot
labels:
app: bot
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app: bot
template:
metadata:
labels:
app: bot
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '8090'
spec:
volumes:
- name: cache
emptyDir: {}
containers:
- name: bot
image: ghcr.io/gotd/bot:main
resources:
requests:
cpu: 500m
memory: 256M
limits:
cpu: "2"
memory: 512M
env:
- name: OTEL_EXPORTER_JAEGER_AGENT_HOST
value: jaeger.faster-monitoring.svc.cluster.local
- name: HOME
value: /cache
- name: HTTP_ADDR
value: 0.0.0.0:8080
- name: METRICS_ADDR
value: 0.0.0.0:8090
- name: TG_NOTIFY_GROUP
value: gotd_ru
- name: TG_DEPLOY_NOTIFY_GROUP
value: gotd_test
- name: BOT_TOKEN
valueFrom:
secretKeyRef:
name: bot
key: BOT_TOKEN
- name: APP_ID
valueFrom:
secretKeyRef:
name: bot
key: APP_ID
- name: APP_HASH
valueFrom:
secretKeyRef:
name: bot
key: APP_HASH
- name: GITHUB_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: bot
key: GITHUB_PRIVATE_KEY
- name: GITHUB_SECRET
valueFrom:
secretKeyRef:
name: bot
key: GITHUB_SECRET
- name: GITHUB_APP_ID
valueFrom:
secretKeyRef:
name: bot
key: GITHUB_APP_ID
- name: GITHUB_CLIENT_ID
valueFrom:
secretKeyRef:
name: bot
key: GITHUB_CLIENT_ID
volumeMounts:
- mountPath: /cache
name: cache