pipeline #14
This commit is contained in:
parent
8739705f7e
commit
3d9da2ee0c
|
|
@ -218,7 +218,20 @@ jobs:
|
||||||
|
|
||||||
# Wait for rollout
|
# Wait for rollout
|
||||||
echo "⏳ Waiting for rollout to finish..."
|
echo "⏳ Waiting for rollout to finish..."
|
||||||
kubectl rollout status deployment/florale-emotion-frontend -n florale-emotion --timeout=300s
|
kubectl rollout status deployment/florale-emotion-frontend -n florale-emotion --timeout=600s || {
|
||||||
|
echo "❌ Rollout failed. Dumping diagnostics..."
|
||||||
|
kubectl get pods -n florale-emotion -o wide || true
|
||||||
|
kubectl describe deployment/florale-emotion-frontend -n florale-emotion || true
|
||||||
|
kubectl describe pods -n florale-emotion -l app=florale-emotion-frontend || true
|
||||||
|
echo "Recent events:"
|
||||||
|
kubectl get events -n florale-emotion --sort-by=.metadata.creationTimestamp | tail -n 50 || true
|
||||||
|
echo "Frontend logs (last 200 lines per pod):"
|
||||||
|
for p in $(kubectl get pods -n florale-emotion -l app=florale-emotion-frontend -o jsonpath='{.items[*].metadata.name}' 2>/dev/null); do
|
||||||
|
echo "--- logs: $p ---"
|
||||||
|
kubectl logs -n florale-emotion "$p" --tail=200 || true
|
||||||
|
done
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
echo "✅ Feature branch deployment complete!"
|
echo "✅ Feature branch deployment complete!"
|
||||||
echo "🌐 Dev URL: https://dev.florale-emotion.de"
|
echo "🌐 Dev URL: https://dev.florale-emotion.de"
|
||||||
|
|
@ -462,7 +475,20 @@ jobs:
|
||||||
|
|
||||||
# Wait for rollout
|
# Wait for rollout
|
||||||
echo "⏳ Waiting for rollout to finish..."
|
echo "⏳ Waiting for rollout to finish..."
|
||||||
kubectl rollout status deployment/florale-emotion-frontend -n florale-emotion --timeout=300s
|
kubectl rollout status deployment/florale-emotion-frontend -n florale-emotion --timeout=600s || {
|
||||||
|
echo "❌ Rollout failed. Dumping diagnostics..."
|
||||||
|
kubectl get pods -n florale-emotion -o wide || true
|
||||||
|
kubectl describe deployment/florale-emotion-frontend -n florale-emotion || true
|
||||||
|
kubectl describe pods -n florale-emotion -l app=florale-emotion-frontend || true
|
||||||
|
echo "Recent events:"
|
||||||
|
kubectl get events -n florale-emotion --sort-by=.metadata.creationTimestamp | tail -n 50 || true
|
||||||
|
echo "Frontend logs (last 200 lines per pod):"
|
||||||
|
for p in $(kubectl get pods -n florale-emotion -l app=florale-emotion-frontend -o jsonpath='{.items[*].metadata.name}' 2>/dev/null); do
|
||||||
|
echo "--- logs: $p ---"
|
||||||
|
kubectl logs -n florale-emotion "$p" --tail=200 || true
|
||||||
|
done
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
echo "✅ Production deployment complete!"
|
echo "✅ Production deployment complete!"
|
||||||
echo "🌐 Website: https://florale-emotion.de"
|
echo "🌐 Website: https://florale-emotion.de"
|
||||||
|
|
|
||||||
|
|
@ -30,13 +30,13 @@ spec:
|
||||||
cpu: "200m"
|
cpu: "200m"
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /health
|
||||||
port: 80
|
port: 80
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /health
|
||||||
port: 80
|
port: 80
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue