Interview Prep/GitHub Actions/Deployments, Environments & Releases

`kubectl rollout status` timed out: `error: deployment "shack-api" exceeded its progress deadline`

IntermediateTroubleshootingDeployments, Environments & Releases
Answer

Likely causes → New pods failing readiness (bad config, missing secret, crash), image pull errors (wrong digest or no ECR pull permission on nodes), or insufficient capacity.

Diagnose →

kubectl -n shack-prod get pods -l app=shack-api
kubectl -n shack-prod describe pod <new-pod> | sed -n '/Events/,$p'
kubectl -n shack-prod logs <new-pod> --previous

Fix → Fix the cause; the workflow should run kubectl rollout undo deployment/shack-api automatically on failure.

Prevent → Dump pod events and logs to the job log on failure (if: failure() step) so on-call does not need cluster access.

All GitHub Actions questions Roadmap: GitHub Actions

More on Deployments, Environments & Releases