The migration Job takes 12 minutes on prod data and the upgrade times out. What do you change?
IntermediateScenarioHooks, Migrations & Testing
Answer
Situation read → --timeout (default 5m) covers hooks; the hook is killed from Helm's view and the upgrade fails.
What I'd do →
- Short term: raise
--timeout 20mfor this deploy. - Split long data backfills out of the deploy path: run them as a separate Job or background process after the schema change.
- Keep deploy-time migrations to fast DDL; use online schema change tools for big tables.
Why → Deploys should be fast and predictable; long data work belongs elsewhere.
Interview tip → Distinguish schema migrations (deploy path) from data backfills (async).
More on Hooks, Migrations & Testing
Design database migrations for a Helm-deployed app where the database is a subchart.IntermediateA migration hook failed and the Job pod was deleted, so you cannot see why. How do you fix the chart?BeginnerYou want a backup before every production upgrade. How do you do it with Helm?IntermediateA `post-install` hook seeds demo data; it ran again on every upgrade and duplicated rows. Why?IntermediateHow do you clean up external resources (DNS records, S3 buckets) when a release is uninstalled?AdvancedWhat would you put in `helm test` for a 3-tier app?Intermediate