-
Notifications
You must be signed in to change notification settings - Fork 725
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
AntiAffinity values are not updated for canaries #923
Comments
Does it work if you remove the |
Just checked. Nope, same thing. |
Have you deleted the deployments? the pod labels are immutable |
No, I've edited them. Also, you've said about template spec labels, and there they are mutable. |
Ok I've found the issue, here #805 So for Flagger to be able to patch the values you need to use the same name as your deployment |
I think you should include that into the docs. It's not very intuitive right now. |
@divanikus from docs here https://docs.flagger.app/faq#is-pod-affinity-and-anti-affinity-supported
|
Feel free to open a PR and improve the docs, thank you! |
Damn, I've read that section for several times and still missed it. Thanks. |
Describe the bug
I can't make the Canary to update antiaffinity setting for a deployment. My deployment is set to have one replica per host. I have 5 hosts and 3 replicas on them. But then I try to release a new version, promoted production Deployment have the same anitaffinity key as the Canary one. So I end up with failed releases because I do not have 6 hosts for now (3 for canary, 3 for production replicas).
Deployment is the following:
And Canary for it:
Expected AntiAffinity block for
mc-master-api-primary
is the following:But in reality it is always just
mc-api
.I've tried to rephrase the affinity verse, but without any luck.
Additional context
The text was updated successfully, but these errors were encountered: