-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not promote when not ready/not live and skipping analysis #362
Comments
Can you please post the logs instead of the Kubernetes events, the events compactation skips some logs. Flagger logs can be fetched with |
I checked, the pods are available, but are not Ready. So the check is reporting correctly, but for all effects, the release is not working. This is the event from
Is there a way to configure that? To check for readiness instead of availability? |
Thanks for digging into this. Going to try to replicate the bug and work on a fix. |
I can't reproduce this with podinfo without livenessProbe and with a failing readinessProbe. The deployment My guess is that your app readinessProbe is flapping, maybe when it starts it works and fails afterwords. |
The probe, which is a simple readinessProbe:
exec:
command:
- cat
- /tmp/healthy
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 1 |
In situations when analysis is being skipped and pods are not live, and are being restarted during a canary, the canary is being promoted incorrectly. It should rollback.
This seems to happen exactly when pods are restarting. Somehow the canary is considered successful.
These are the canary events:
Notice the 4th event stating the replicas were not available.
The docs say:
But it is not clear on what healthy means. Is it ready? Alive?
Edit: I removed the livenessProbe, and left only the readynessProbe, and even when the pods are not restarted the rollout continues and promotion happens.
The text was updated successfully, but these errors were encountered: