优化架构K8s 副本和队列

This commit is contained in:
Azmat@qq.com
2026-09-03 16:38:02 +08:00
parent f53b6e1035
commit e7122b78fb
9 changed files with 80 additions and 10 deletions
+42
View File
@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: airshelf-core-worker-quick
labels:
app: airshelf-core-worker-quick
spec:
replicas: 1
selector:
matchLabels:
app: airshelf-core-worker-quick
template:
metadata:
labels:
app: airshelf-core-worker-quick
spec:
imagePullSecrets:
- name: cr-pull-secret
containers:
- name: airshelf-core-worker-quick
image: ${CI_REGISTRY_IMAGE}/airshelf-core-api:latest
imagePullPolicy: Always
# 只消费 airshelf.quick:提取角色、通知补齐、脚本思考、视频状态轻轮询。
# 与出片 worker 隔离,Seedance 占满时提取仍能跑。
args: ["celery", "-A", "airshelf.celery:app", "worker", "-l", "info", "-Q", "airshelf.quick", "--concurrency", "4"]
envFrom:
- secretRef:
name: airshelf-core-env
livenessProbe:
exec:
command: ["sh", "-c", "celery -A airshelf.celery:app inspect ping"]
initialDelaySeconds: 40
periodSeconds: 60
timeoutSeconds: 15
failureThreshold: 3
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "1Gi"
cpu: "500m"