Interview Prep/Helm/Install & Upgrade Failures

`Error: UPGRADE FAILED: context deadline exceeded`

BeginnerTroubleshootingInstall & Upgrade Failures
Answer

Likely causes → With --wait, resources did not become ready within --timeout (default 5m): image pull failures, crash loops, failing readiness probes, pending pods (no capacity), a hook Job running long.

Diagnose →

kubectl get pods -n shop
kubectl describe pod -n shop -l app.kubernetes.io/instance=shop | sed -n '/Events/,$p'
kubectl logs -n shop deploy/shop-api --previous
kubectl get events -n shop --sort-by=.lastTimestamp | tail -20

Fix → Fix the underlying pod issue and redeploy; raise --timeout only if the rollout is legitimately slow. Roll back if needed.

Prevent → Realistic probes and timeouts, capacity headroom, and capture diagnostics in the CI failure step.

All Helm questions Roadmap: Helm

More on Install & Upgrade Failures