-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Infinite loop reconcile due to Rancher annotations on Ingress resources #11414
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
Comments
Assuming the annotation has a stable value, you can set it in the |
Thank you for the advice!
Is this what you have suggested? There is a However even with my changes it is better, i no longer see new Ingress version being applied every 2 seconds, but I do still see updates in the log:
So I am not sure what does This is of course not a fix, just a temporary workaround because Its been a while since I did any Java, but I can check how easy it would be to make commit with changes. |
As the annotation seems to be different on each Ingress resource, then what you did is the right workaround, yes 👍.
To be honest, it is not easy for me to say what exactly it means as I do not have any Rancher clusters to test it with and see what exactly it adds to different resources etc. Sorry.
Obviously, if you would be able to contribute it, it would be great. If not, there might be sooner or later someone else interested in some contribution who can do this. So up to you ... but even as an issue report without a fix this is of course valuable and appreciated. |
Triaged on 29.5.2025: @HydraCro are you good with the Jakub's comments and suggestions or are you willing to contribute a fix for it? |
Uh oh!
There was an error while loading. Please reload this page.
Bug Description
We are running Strimzi (v0.45.0) Kafka (v3.9.0) alongside Rancher (v2.7.9).
There is an issue with Ingress resource, where our Nginx ingress controller keeps syncing with new Ingress that has been reconciled by Strimzi Operator. Rancher agent and Strimzi Operator keep competing over annotation, and every 2 seconds Ingress gets updated and new resourceVersion assigned.
Here is the operator log:
2025-05-06 14:49:06 DEBUG ResourceDiff:65 - Reconciliation #1652(watch) Kafka(kafka/xxx-cluster): Ingress xxx-cluster-kafka-externaltls-bootstrap differs: {"op":"remove","path":"/metadata/annotations/field.cattle.io~1publicEndpoints"}
2025-05-06T16:49:06.065012677+02:00 2025-05-06 14:49:06 DEBUG ResourceDiff:66 - Reconciliation #1652(watch) Kafka(kafka/xxx-cluster): Current Ingress xxx-cluster-kafka-externaltls-bootstrap path /metadata/annotations/field.cattle.io~1publicEndpoints has value
2025-05-06T16:49:06.065029748+02:00 2025-05-06 14:49:06 DEBUG ResourceDiff:67 - Reconciliation #1652(watch) Kafka(kafka/xxx-cluster): Desired Ingress xxx-cluster-kafka-externaltls-bootstrap path /metadata/annotations/field.cattle.io~1publicEndpoints has value
2025-05-06 14:49:06 DEBUG AbstractNamespacedResourceOperator:236 - Reconciliation #1652(watch) Kafka(kafka/xxx-cluster): Ingress xxx-cluster-kafka-externaltls-bootstrap in namespace kafka has been patched
I have noticed there was a bug report already on this long time ago, and that it was fixed with LOADBALANCER_ANNOTATION_IGNORELIST (#4035), but we are still experiencing the problem.
Steps to reproduce
No response
Expected behavior
Resources updated by Rancher annotations should not trigger reconciliation.
Strimzi version
0.45.0
Kubernetes version
1.28.15
Installation method
Helm chart
Infrastructure
Bare-metal
Configuration files and logs
2025-05-06 14:49:06 DEBUG ResourceDiff:65 - Reconciliation #1652(watch) Kafka(kafka/xxx-cluster): Ingress xxx-cluster-kafka-externaltls-bootstrap differs: {"op":"remove","path":"/metadata/annotations/field.cattle.io~1publicEndpoints"}
2025-05-06T16:49:06.065012677+02:00 2025-05-06 14:49:06 DEBUG ResourceDiff:66 - Reconciliation #1652(watch) Kafka(kafka/xxx-cluster): Current Ingress xxx-cluster-kafka-externaltls-bootstrap path /metadata/annotations/field.cattle.io~1publicEndpoints has value
2025-05-06T16:49:06.065029748+02:00 2025-05-06 14:49:06 DEBUG ResourceDiff:67 - Reconciliation #1652(watch) Kafka(kafka/xxx-cluster): Desired Ingress xxx-cluster-kafka-externaltls-bootstrap path /metadata/annotations/field.cattle.io~1publicEndpoints has value
2025-05-06 14:49:06 DEBUG AbstractNamespacedResourceOperator:236 - Reconciliation #1652(watch) Kafka(kafka/xxx-cluster): Ingress xxx-cluster-kafka-externaltls-bootstrap in namespace kafka has been patched
Additional context
No response
The text was updated successfully, but these errors were encountered: