-
Notifications
You must be signed in to change notification settings - Fork 387
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
Antrea supports setting network interface for inter-host communication #2473
Comments
@Jexf thanks for the suggestion. This is definitely a valid scenario Antrea should support. We received similar feature suggestion in #2344, though it's for windows. |
Good idea. @jianjuns @antoninbas what's your opinion? |
I did not get the idea. transportCIDRRange is for supporting different interface names on different Nodes? How it helps? |
I think it's to identify the interface based on its subnet and not based on its name which can vary across Nodes. |
A k8s-antrea has three nodes:
The interface for inter-host communicatio on tos-04 is:
The interface for inter-host communicatio on tos-05 is:
We can update The subnet option for inter-host communication only work on L2 network. Maybe we can add an option with []subnet, then antrea will match the first interface from subnets list. @antoninbas |
Interface or subnet list do not sound ideal either, as two Nodes can have the same set of interfaces or subnets, but want to choose different ones. If we step back, do you think you can create two Antrea DaemonSets (each should select different Nodes) for the two Nodes in your example, with different transportInterface configuration? It is not very convenient but should work? |
…rea-io#2473) Antrea Agent uses the configurable CIDR for Pod traffic. The order for configuring tunneling or routing the traffic across Nodes is (from highest to lowest): a.TransportInterface b.TransportCIDR c.The Node Internal IP or External IP Fix add node routes crash bug, which caused by uninitialized DualStackIPs param Fix ipv4 address and ipv6 address confused bug Signed-off-by: Wu zhengdong <zhengdong.wu@transwarp.io>
Describe the problem/challenge you have
Antrea gets NodeInternalIP or NodeExternalIP for inter-host communication, sometimes we need set special network interface for inter-host communication.
Describe the solution you'd like
Maybe need
antrea-agent --config /etc/antrea/antrea-agent.conf --iface eno1
orantrea-agent --config /etc/antrea/antrea-agent.conf --iface-regex 172.16.100.0/24
Use iface or iface-regex, which config param is not empty, when setting up node inter-host communication ip addr, otherwise use NodeInternalIP or NodeExternalIP.
The text was updated successfully, but these errors were encountered: