Bot commit: Добавлен файл k8s/tg.yaml
This commit is contained in:
parent
2b0194c992
commit
aac140ce91
35
k8s/tg.yaml
Normal file
35
k8s/tg.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: celery
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: celery
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: celery
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: regcred
|
||||||
|
containers:
|
||||||
|
- name: tg
|
||||||
|
image: registry.spiritofweb.ru/avtopost-api:latest
|
||||||
|
command: ["celery", "-A", "tg.celery_app_tg", "worker", "--loglevel=info"]
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: celery
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: celery
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
RABBITMQ_PASS: $RABBITMQ_PASS
|
||||||
|
BOT_TOKEN: "$BOT_TOKEN"
|
||||||
|
ATOKEN: "$ATOKEN"
|
||||||
|
FULL_PATH_DOMAIN: $FULL_PATH_DOMAIN
|
||||||
|
PROD: "false"
|
||||||
Loading…
Reference in New Issue
Block a user