Interview Prep/Helm/Install & Upgrade Failures

`Error: UPGRADE FAILED: an error occurred while rolling back the release. original upgrade error: context deadline exceeded: ...`

AdvancedTroubleshootingInstall & Upgrade Failures
Answer

Likely causes → --atomic tried to roll back but the rollback also failed: the previous revision is not deployable anymore (deleted image tag, removed API, immutable field change in between) or the rollback also timed out.

Diagnose →

helm history shop -n shop
kubectl get pods -n shop; kubectl get events -n shop --sort-by=.lastTimestamp | tail

Fix → Fix forward: deploy a corrected chart or values. If the release is stuck in pending-rollback, clear it as in Q101. Restore missing images from the registry if possible.

Prevent → Immutable image tags with retention covering your rollback window; avoid immutable-field changes.

All Helm questions Roadmap: Helm

More on Install & Upgrade Failures