dcbot/k8s/base/bot.yml
Dawid Wysokiński e9fe9748b7
All checks were successful
continuous-integration/drone/push Build is passing
feat: dev env (#1)
Reviewed-on: #1
2022-10-02 06:29:23 +00:00

46 lines
1.1 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
livenessProbe:
exec:
command: [ "cat", "/tmp/healthy" ]
initialDelaySeconds: 5
periodSeconds: 5
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 400m
memory: 400Mi