Interview Prep/Helm/Hooks, Migrations & Testing

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 →

  1. Short term: raise --timeout 20m for this deploy.
  2. Split long data backfills out of the deploy path: run them as a separate Job or background process after the schema change.
  3. 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).

All Helm questions Roadmap: Helm

More on Hooks, Migrations & Testing