initial verstion

This commit is contained in:
2026-03-26 19:06:08 +04:00
commit a20e4719af
8 changed files with 238 additions and 0 deletions

51
k8s/base/bot.yaml Normal file
View File

@@ -0,0 +1,51 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: heic-converter-bot
spec:
replicas: 1
selector:
matchLabels:
app: heic-bot
template:
metadata:
labels:
app: heic-bot
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8000"
spec:
containers:
- name: bot
image: git.danilkolesnikov.ru/danilko09/heic-bot:latest
env:
- name: BOT_TOKEN
valueFrom:
configMapKeyRef:
name: heic-bot-config
key: BOT_TOKEN
ports:
- containerPort: 8000
name: metrics
- containerPort: 8080
name: health
# Critical for image processing pods
resources:
requests:
memory: "256Mi"
cpu: "200m"
limits:
memory: "1Gi"
cpu: "1000m"
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 10