initial verstion
This commit is contained in:
51
k8s/base/bot.yaml
Normal file
51
k8s/base/bot.yaml
Normal 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
|
||||
2
k8s/base/kustomization.yaml
Normal file
2
k8s/base/kustomization.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- deployment.yaml
|
||||
Reference in New Issue
Block a user