-
Notifications
You must be signed in to change notification settings - Fork 6
/
deployment.yml
executable file
·34 lines (34 loc) · 964 Bytes
/
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
spec:
template:
spec:
containers:
- env:
- name: DB_HOST
value: telegram-bot-database
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: telegram-bot-database-secret
key: user
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: telegram-bot-database-secret
key: password
- name: TELEGRAM_TOKEN
valueFrom:
configMapKeyRef:
name: telegram-bot
key: token
readinessProbe:
httpGet:
path: /api/health
port: 8080
scheme: HTTP
livenessProbe:
httpGet:
path: /api/health
port: 8080
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 30