feat(bot): 🚧 Start migrating to k8s.

This commit is contained in:
Nyeki.py
2024-10-30 15:38:00 -03:00
parent 01c4a95ff3
commit 345e44137a
17 changed files with 304 additions and 40 deletions
+40
View File
@@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: discord-bot
labels:
app: discord-bot
spec:
replicas: 11
selector:
matchLabels:
app: discord-bot
template:
metadata:
labels:
app: discord-bot
spec:
containers:
- name: bot
image: nekidev/payphone:latest
env:
- name: IS_DEBUG
value: "false"
- name: SHARD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: TOTAL_SHARDS
value: "11"
- name: REDIS_HOST
value: "redis"
- name: REDIS_PORT
value: "6379"
resources:
limits:
cpu: "500m"
memory: "512Mi"
requests:
cpu: "250m"
memory: "256Mi"
restartPolicy: Always