优化架构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
+3 -1
View File
@@ -147,7 +147,7 @@ jobs:
sed -i "s|airshelf.airlabs.art|${{ env.DOMAIN_WEB }}|g" k8s/ingress.yaml
# ===== Core (real app) image + domain substitution =====
sed -i "s|\${CI_REGISTRY_IMAGE}/airshelf-core-api:latest|${CR_IMAGE}/airshelf-core-api:${{ env.IMAGE_TAG }}|g" k8s/core/api-deployment.yaml k8s/core/worker-deployment.yaml
sed -i "s|\${CI_REGISTRY_IMAGE}/airshelf-core-api:latest|${CR_IMAGE}/airshelf-core-api:${{ env.IMAGE_TAG }}|g" k8s/core/api-deployment.yaml k8s/core/worker-deployment.yaml k8s/core/worker-quick-deployment.yaml
sed -i "s|\${CI_REGISTRY_IMAGE}/airshelf-core-web:latest|${CR_IMAGE}/airshelf-core-web:${{ env.IMAGE_TAG }}|g" k8s/core/web-deployment.yaml
sed -i "s|airshelf-web.airlabs.art|${{ env.DOMAIN_CORE }}|g" k8s/core/ingress.yaml
@@ -196,6 +196,7 @@ jobs:
# Core real app (api + celery worker + web + ingress)
kubectl $KUBECTL_TIMEOUT apply -f k8s/core/api-deployment.yaml
kubectl $KUBECTL_TIMEOUT apply -f k8s/core/worker-deployment.yaml
kubectl $KUBECTL_TIMEOUT apply -f k8s/core/worker-quick-deployment.yaml
kubectl $KUBECTL_TIMEOUT apply -f k8s/core/web-deployment.yaml
kubectl $KUBECTL_TIMEOUT apply -f k8s/core/ingress.yaml
@@ -205,6 +206,7 @@ jobs:
kubectl $KUBECTL_TIMEOUT rollout restart deployment/airshelf-web
kubectl $KUBECTL_TIMEOUT rollout restart deployment/airshelf-core-api
kubectl $KUBECTL_TIMEOUT rollout restart deployment/airshelf-core-worker
kubectl $KUBECTL_TIMEOUT rollout restart deployment/airshelf-core-worker-quick
kubectl $KUBECTL_TIMEOUT rollout restart deployment/airshelf-core-web
} 2>&1 | tee /tmp/deploy.log && { ok=1; break; }
echo "Attempt $attempt failed, retrying in 30s..."