-
Notifications
You must be signed in to change notification settings - Fork 373
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
Add selecting egress's owner node and assign egress-ip to owner node #2225
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2225 +/- ##
==========================================
- Coverage 61.75% 61.41% -0.34%
==========================================
Files 278 281 +3
Lines 21255 21581 +326
==========================================
+ Hits 13125 13254 +129
- Misses 6770 6943 +173
- Partials 1360 1384 +24
Flags with carried forward coverage won't be shown. Click here to find out more.
|
f204201
to
0bbc99f
Compare
a7fe01a
to
2135405
Compare
f3a9c29
to
a3de615
Compare
A cluster will created in background when egress feature turn on, once local node labels matches the ExternalIPPool nodeSelectors, it will join cluster, in the same way, local node will leave cluster when node labels or ExternalIPPool nodeSelectors updated and not matched. Each node joined in cluster hold the same consistent hash map, when new node join cluster, add node name as new key to the hash ring, when a node leave the cluster, the consistent hash map will update. Signed-off-by: wenqiq <wenqiq@vmware.com>
a3de615
to
a86be3b
Compare
1.Assign a owner node for egress which with a valid externalIPPool 2.Add egress status of api, when egress has assigned a owner node and egressIP has assigned, the egress status will updated, egress status is the owner node name Signed-off-by: wenqiq <wenqiq@vmware.com>
a86be3b
to
4692284
Compare
if err != nil { | ||
return err | ||
} | ||
if err := assignEgressIP(addr, link); err != nil { |
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.
could be simplified by return assignEgressIP(addr, link)
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.
Thanks, could you please help to review this PR #2186? Some code has been deprecated in this PR.
All codes have been merged in PR #2186. Close this PR. |
Add selecting egress's owner node and assign egress-ip to owner node
1.Assign a owner node for egress which with a valid externalIPPool
2.Add egress status of api, when egress has assigned a owner node and egressIP has assigned,
the egress status will updated, egress status is the owner node name
For #2128