-
Notifications
You must be signed in to change notification settings - Fork 389
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
Support multi-cluster with networkPolicyOnly mode #4383
Comments
After a few discussion and performance test, We choose another solution for Pod routes which is simpler and easier to implement and maintain. In order to let Gateway know how to forward the Pod traffic back to general Node, Antrea-agent will simply watch all Pods and set up one rule per Pod in L3Fowarding table as below as long as the Pod is running in a general Node instead of Gateway itself.
And a regular tunnel classifier flow is also needed:
Besides Pod routes issue in networkPolicyOnly mode, we still have following issues need to be addressed.
|
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days |
This feature is supported in v1.11 by PR #4407, so close this issue. |
Describe what you are trying to solve
For now, Antrea multi-cluster is running with encap mode by default, it can't support the case when Antrea is running in a networkPolicyOnly mode.
Describe the solution you have in mind
Make Antrea multi-cluster work when Antrea is running in a networkPolicyOnly mode.
Describe how your solution impacts user flows
The primary CNI manages Pod IPs and routes. Antrea doesn't set up any Pod routes in OVS, and it has no tunnel interface for any in-cluster or cross-cluster traffic. So we need to create the tunnel interface and a general way to route cross-cluster traffic correctly.
antrea-tun0
interface when Antrea is deployed with networkPolicyOnly mode and multi-cluster enabled.And commit the connection and save the source tunnel IP into
ct_label[64..95]
. Each general Node will have one following rules.Describe the main design/architecture of your solution
The whole Antrea multi-cluster architecture has no impact. The main change is on Antrea agent side. And the flow changes are listed above.
Test plan
manual test in first phase.
The text was updated successfully, but these errors were encountered: