With wait, Flux checks after applying whether the objects really become healthy. If a Deployment stays InProgress longer than the timeout, the Kustomization turns READY False – the signal you hang alerts on.
Symptom
flux get kustomization notes NAME REVISION SUSPENDED READY MESSAGE notes main@sha1:60742105 False False health check failed after 2m0.122046047s: timeout waiting for: [Deployment/notes/notes status: 'InProgress']
REVISION still shows the old commit, although the new manifest was applied.
Diagnosis
The new pod is stuck, the old ones keep running – the application answers with the old version.
kubectl -n notes get pods curl -s localhost:30080/version NAME READY STATUS RESTARTS AGE notes-79c46dfb9c-zkq6d 0/1 Init:ErrImagePull 0 3m20s notes-86b7bffdbb-4h7pf 1/1 Running 0 3m44s notes-86b7bffdbb-nh9qc 1/1 Running 0 3m40s 0.5.3
Causes
wait: trueHealth check waits for the Deployment
With wait, a Kustomization only reports Ready when all objects are healthy. An image that does not exist never lets the new pod start – after the two-minute timeout Flux reports the error.
ErrImagePullThe new version cannot be pulled
The old pods keep running thanks to the rolling update. Flux applied the manifest but only counts the revision as applied once the health checks pass.
Fix
git revert --no-edit HEAD git push flux reconcile source git flux-system flux reconcile kustomization notes [main 39634fa] Revert "notes-api 0.9.99" ✔ applied revision main@sha1:39634fad5a6246cad3a6348f4a7d2439b4adba6c
Don't: Turning off wait so the Kustomization turns green. Then Flux reports Ready although the new version never runs.
Flux hands-on, day 4: Kustomizations with wait, timeout, dependsOn and variables from postBuild.
Go to day 4 →
FAQ
Why does it take over three minutes until the message?
The two-minute timeout plus the time until Flux writes the status.
Does the application stay reachable?
Yes. Kubernetes' rolling update only replaces the old pods once new ones are ready.