-
Notifications
You must be signed in to change notification settings - Fork 127
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
prepend encapsulation rules to reduce number of reconciliation thereof #317
prepend encapsulation rules to reduce number of reconciliation thereof #317
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed in the Kilo Slack channel, I think this optimization makes a lot of sense and is a welcome addition 🎉
I think we need to debug the e2e tests; something keeps causing then to time out during rollout of some deployment. |
(most likely unrelated to the PR) |
We need to investigate why the e2e tests fail. I don't think it is related to this PR. |
With #319 the e2e test should work again. Can you rebase the PR? |
because of the way the iptables rules are reconciled, having the encapsulation rules at the end of the slice of rules results in them being deleted and re-added many times, even though they are very static. Prepending them to the slice of rules prevents this from happening, making that iptables chain more stable and saving a bunch of roundtrips to iptables.
7093aaa
to
0f0b0bd
Compare
@leonnicolas <- done 😁 |
thanks @clive-jevons! |
Always a pleasure - and thank you, @squat and @leonnicolas for all your support in getting this PR done 😁 |
because of the way the iptables rules are reconciled, having the encapsulation
rules at the end of the slice of rules results in them being deleted and re-added
many times, even though they are very static. Prepending them to the slice of
rules prevents this from happening, making that iptables chain more stable
and saving a bunch of roundtrips to iptables.