Interview Prep/Helm/Hooks, Migrations & Testing

Your hook Job never completes because Istio's sidecar keeps the pod running. How do you fix it?

AdvancedScenarioHooks, Migrations & Testing
Answer

Situation read → The main container exits, but the injected istio-proxy keeps running, so the Job never reaches Complete and Helm waits until timeout.

What I'd do →

  1. With native sidecars (Kubernetes 1.29+, Istio configured to use them), the proxy stops automatically when the main container ends.
  2. Otherwise disable injection for the hook: sidecar.istio.io/inject: "false" on the pod template if it does not need the mesh.
  3. Or call curl -X POST localhost:15020/quitquitquit at the end of the script.

Why → Jobs complete only when all containers exit.

Interview tip → Mention native sidecars as the modern fix.

All Helm questions Roadmap: Helm

More on Hooks, Migrations & Testing