Skip to content

Commit 7e1b013

Browse files
kabirclaude
andcommitted
feat: Add comprehensive diagnostics to cloud deployment workflow
Add detailed pod diagnostics to help troubleshoot agent startup issues: - Pod status with wide output showing node placement - Pod descriptions showing recent events and conditions - Kubernetes events sorted by timestamp This will help identify why pods are timing out despite: - Image successfully loaded into minikube - imagePullPolicy patched to Never - Infrastructure deployed successfully 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ec8fea3 commit 7e1b013

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/cloud-deployment-example.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,22 @@ jobs:
7575
kubectl patch deployment a2a-agent -n a2a-demo --type='json' \
7676
-p='[{"op": "replace", "path": "/spec/template/spec/containers/0/imagePullPolicy", "value": "Never"}]'
7777
78+
# Give pods a moment to start
79+
sleep 10
80+
81+
# Diagnostic: Check pod status
82+
echo "=== Pod Status ==="
83+
kubectl get pods -n a2a-demo -l app=a2a-agent -o wide
84+
85+
echo "=== Pod Descriptions ==="
86+
for pod in $(kubectl get pods -n a2a-demo -l app=a2a-agent -o jsonpath='{.items[*].metadata.name}'); do
87+
echo "--- Pod: $pod ---"
88+
kubectl describe pod $pod -n a2a-demo | tail -30
89+
done
90+
91+
echo "=== Recent Events ==="
92+
kubectl get events -n a2a-demo --sort-by='.lastTimestamp' | tail -20
93+
7894
echo "Waiting for agent pods to be ready..."
7995
kubectl wait --for=condition=Ready pod -l app=a2a-agent -n a2a-demo --timeout=120s
8096

0 commit comments

Comments
 (0)