-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgpv1: Support externalTrafficPolicy=local for service advertisement
The semantics of the externalTrafficPolicy=local for service advertisement. When at least one active endpoint present, we advertise the LB VIP, otherwise, stop advertisement. We can track active endpoints by tracking the Endpoints or EndpointSlice object. They contain the list of the endpoint IPs and nodes. We leverage a new Resource[*Endpoints] for subscribing the changes. For an efficient processing, we wrap it with DiffStore and do reconciliation against the service affected by the endpoint changes. On every reconciliation, we populate the structure called localServices from DiffStore store which represents the information that services have at least one available local endpoint or not. Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
- Loading branch information
1 parent
6d4b2f7
commit 24e37ed
Showing
7 changed files
with
174 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.