A Helm deploy step fails after 5 minutes with "Error: UPGRADE FAILED: context deadline exceeded" and the pipeline marks prod as broken.

IntermediateTroubleshootingPipeline outages
Answer

Likely causes → With --wait, Helm waits for resources to become ready within --timeout (default 5m). The new pods never became Ready: failing readiness probes, ImagePullBackOff, CrashLoopBackOff, Pending for lack of capacity, or a Job hook that hangs.

Diagnose →

helm history web -n prod | tail -3
kubectl rollout status deploy/web -n prod
kubectl get pods -n prod -l app.kubernetes.io/instance=web
kubectl describe pod <new-pod> | tail -15

Fix → Fix the underlying pod problem, or roll back (helm rollback web <last-good-revision> -n prod). Use --rollback-on-failure (Helm 4; called --atomic in Helm 3) so a failed upgrade reverts automatically.

Prevent → Make readiness probes meaningful, deploy to staging with the same chart first, and set --timeout to match real startup time instead of hiding slow starts.

All Real-World Interview questions Roadmap: Interview readiness

More on Pipeline outages