Dawid Wysokiński
88f7608db7
All checks were successful
continuous-integration/drone/push Build is passing
52 lines
1.4 KiB
YAML
52 lines
1.4 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: "3"
|
|
- name: BOT_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: twhelp-dcbot-secret
|
|
key: token
|
|
- name: TWHELP_URL
|
|
value: "https://tribalwarshelp.com"
|
|
- name: BOT_MAX_GROUPS_PER_SERVER
|
|
value: "10"
|
|
- name: BOT_MAX_MONITORS_PER_GROUP
|
|
value: "10"
|
|
livenessProbe:
|
|
exec:
|
|
command: [ "cat", "/tmp/healthy" ]
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100Mi
|
|
limits:
|
|
cpu: 250m
|
|
memory: 300Mi |