Skip to content

Commit 95e413e

Browse files
committed
update
1 parent 6d8ff74 commit 95e413e

4 files changed

Lines changed: 25 additions & 5 deletions

File tree

.github/workflows/backend-cd.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,29 @@ jobs:
102102
kubectl set image deploy/order-service-w08e1 order-service-container="${REGISTRY_LOGIN_SERVER}/order_service:${IMAGE_TAG}" --record=true || true
103103
104104
echo "Waiting for product-service rollout..."
105-
kubectl rollout status deploy/product-service-w08e1 --timeout=180s || exit 1
105+
kubectl rollout status deploy/product-service-w08e1 --timeout=600s || exit 1
106106
echo "Waiting for order-service rollout..."
107-
kubectl rollout status deploy/order-service-w08e1 --timeout=180s || exit 1
107+
kubectl rollout status deploy/order-service-w08e1 --timeout=600s || exit 1
108+
109+
- name: Debug (product-service) on failure
110+
if: failure()
111+
run: |
112+
echo "=== Deployments ==="
113+
kubectl get deploy -o wide
114+
echo "=== ReplicaSets (product) ==="
115+
kubectl get rs -l app=product-service -o wide || true
116+
echo "=== Pods (product) ==="
117+
kubectl get pods -l app=product-service -o wide || true
118+
echo "=== Describe deployment ==="
119+
kubectl describe deploy/product-service-w08e1 || true
120+
echo "=== Describe pods ==="
121+
for p in $(kubectl get pods -l app=product-service -o name); do
122+
kubectl describe "$p" || true
123+
echo "--- Logs $p ---"
124+
kubectl logs "$p" --all-containers --tail=200 || true
125+
done
126+
echo "=== Recent events ==="
127+
kubectl get events --sort-by=.lastTimestamp | tail -n 200 || true
108128
109129
- name: Capture LoadBalancer IPs
110130
id: capture

k8s/frontend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
spec:
1919
containers:
2020
- name: frontend-container
21-
image: cyweek09acr.azurecr.io/frontend:9acc71f1368bbb356611145b07fca17af1250733
21+
image: cyweek09acr.azurecr.io/frontend:latest
2222
imagePullPolicy: Always
2323
ports:
2424
- containerPort: 80

k8s/order-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
spec:
1919
containers:
2020
- name: order-service-container
21-
image: cyweek09acr.azurecr.io/order_service:9acc71f1368bbb356611145b07fca17af1250733
21+
image: cyweek09acr.azurecr.io/order_service:latest
2222
imagePullPolicy: Always
2323
ports:
2424
- containerPort: 8000

k8s/product-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
spec:
1919
containers:
2020
- name: product-service-container
21-
image: cyweek09acr.azurecr.io/product_service:9acc71f1368bbb356611145b07fca17af1250733
21+
image: cyweek09acr.azurecr.io/product_service:latest
2222
imagePullPolicy: Always
2323
ports:
2424
- containerPort: 8000

0 commit comments

Comments
 (0)