Interview Prep/Helm/Hooks, Migrations & Testing

What would you put in `helm test` for a 3-tier app?

IntermediateScenarioHooks, Migrations & Testing
Answer

Situation read → Tests should prove the deployed wiring works.

What I'd do →

  1. Test Pod 1: curl -fsS http://<release>-api:3000/readyz (API up, DB reachable).
  2. Test Pod 2: curl -fsS http://<release>-frontend:8080/api/items (frontend proxies to API).
  3. Test Pod 3 (optional): psql -c 'select 1 from items limit 1' (migration applied).
  4. Run helm test shop --logs in CI right after upgrade.

Why → Each test validates one hop of the request path.

Interview tip → Map tests to hops in the architecture.

All Helm questions Roadmap: Helm

More on Hooks, Migrations & Testing