dcbot/k8s/base/bot.yml
Dawid Wysokiński eec0909c78
All checks were successful
continuous-integration/drone/push Build is passing
feat: notifications (#25)
Reviewed-on: #25
2022-10-27 09:56:40 +00:00

50 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: twhelp-dcbot-deployment
spec:
selector:
matchLabels:
app: twhelp-dcbot
template:
metadata:
labels:
app: twhelp-dcbot
spec:
containers:
- name: twhelp-dcbot
image: dcbot
args: ["run"]
env:
- name: APP_MODE
value: development
- name: DB_DSN
valueFrom:
secretKeyRef:
name: twhelp-dcbot-secret
key: db-dsn
- name: DB_MAX_OPEN_CONNECTIONS
value: "10"
- name: DB_MAX_IDLE_CONNECTIONS
value: "2"
- name: BOT_TOKEN
valueFrom:
secretKeyRef:
name: twhelp-dcbot-secret
key: token
- name: TWHELP_URL
value: "https://tribalwarshelp.com"
- name: BOT_ENNOBLEMENTS_MAX_CONCURRENT_REQUESTS
value: "4"
livenessProbe:
exec:
command: [ "cat", "/tmp/healthy" ]
initialDelaySeconds: 5
periodSeconds: 5
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 400m
memory: 400Mi