fix: CI rollout 超时 120s→300s (backend startupProbe 需较长时间)
GraphRAG CI/CD / build-and-deploy (push) Successful in 2m50s
GraphRAG CI/CD / build-and-deploy (push) Successful in 2m50s
This commit is contained in:
@@ -65,8 +65,8 @@ jobs:
|
|||||||
k3s kubectl set image deployment/backend backend=registry.plfai.cn/graphrag-backend:${TAG} -n ${NS}
|
k3s kubectl set image deployment/backend backend=registry.plfai.cn/graphrag-backend:${TAG} -n ${NS}
|
||||||
k3s kubectl set image deployment/frontend frontend=registry.plfai.cn/graphrag-frontend:${TAG} -n ${NS}
|
k3s kubectl set image deployment/frontend frontend=registry.plfai.cn/graphrag-frontend:${TAG} -n ${NS}
|
||||||
|
|
||||||
k3s kubectl rollout status deployment/backend -n ${NS} --timeout=120s
|
k3s kubectl rollout status deployment/backend -n ${NS} --timeout=300s
|
||||||
k3s kubectl rollout status deployment/frontend -n ${NS} --timeout=60s
|
k3s kubectl rollout status deployment/frontend -n ${NS} --timeout=120s
|
||||||
|
|
||||||
sleep 3
|
sleep 3
|
||||||
curl -sk --connect-timeout 10 --retry 3 https://test-graphrag.plfai.cn/api/v1/health | grep healthy
|
curl -sk --connect-timeout 10 --retry 3 https://test-graphrag.plfai.cn/api/v1/health | grep healthy
|
||||||
@@ -80,8 +80,8 @@ jobs:
|
|||||||
k3s kubectl set image deployment/backend backend=registry.plfai.cn/graphrag-backend:${TAG} -n ${NS}
|
k3s kubectl set image deployment/backend backend=registry.plfai.cn/graphrag-backend:${TAG} -n ${NS}
|
||||||
k3s kubectl set image deployment/frontend frontend=registry.plfai.cn/graphrag-frontend:${TAG} -n ${NS}
|
k3s kubectl set image deployment/frontend frontend=registry.plfai.cn/graphrag-frontend:${TAG} -n ${NS}
|
||||||
|
|
||||||
k3s kubectl rollout status deployment/backend -n ${NS} --timeout=120s
|
k3s kubectl rollout status deployment/backend -n ${NS} --timeout=300s
|
||||||
k3s kubectl rollout status deployment/frontend -n ${NS} --timeout=60s
|
k3s kubectl rollout status deployment/frontend -n ${NS} --timeout=120s
|
||||||
|
|
||||||
sleep 3
|
sleep 3
|
||||||
curl -sk --connect-timeout 10 --retry 3 https://graphrag.plfai.cn/api/v1/health | grep healthy
|
curl -sk --connect-timeout 10 --retry 3 https://graphrag.plfai.cn/api/v1/health | grep healthy
|
||||||
|
|||||||
Reference in New Issue
Block a user