2022-10-02 06:29:23 +00:00
|
|
|
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
|
2023-07-13 04:22:52 +00:00
|
|
|
- name: REDIS_CONNECTION_STRING
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: twhelp-dcbot-secret
|
|
|
|
key: redis-connection-string
|
2022-10-02 06:29:23 +00:00
|
|
|
- name: DB_MAX_OPEN_CONNECTIONS
|
|
|
|
value: "10"
|
|
|
|
- name: DB_MAX_IDLE_CONNECTIONS
|
2022-11-05 06:16:39 +00:00
|
|
|
value: "3"
|
2022-10-02 06:29:23 +00:00
|
|
|
- name: BOT_TOKEN
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: twhelp-dcbot-secret
|
|
|
|
key: token
|
2022-10-09 06:31:38 +00:00
|
|
|
- name: TWHELP_URL
|
|
|
|
value: "https://tribalwarshelp.com"
|
2023-06-18 06:47:51 +00:00
|
|
|
- name: TWHELP_RATE_LIMITER_ENABLED
|
|
|
|
value: "false"
|
2022-10-27 12:12:29 +00:00
|
|
|
- name: BOT_MAX_GROUPS_PER_SERVER
|
2023-06-18 06:47:51 +00:00
|
|
|
value: "5"
|
2022-10-27 12:12:29 +00:00
|
|
|
- name: BOT_MAX_MONITORS_PER_GROUP
|
|
|
|
value: "10"
|
2022-10-02 06:29:23 +00:00
|
|
|
livenessProbe:
|
|
|
|
exec:
|
|
|
|
command: [ "cat", "/tmp/healthy" ]
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
periodSeconds: 5
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 100Mi
|
|
|
|
limits:
|
2022-10-29 06:13:02 +00:00
|
|
|
cpu: 250m
|
2023-06-18 06:47:51 +00:00
|
|
|
memory: 300Mi
|