-
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
support for noEncap mode #237
Comments
Thanks for making the proposal. I have thought about no-encap mode too, and a little different from what you described I am thinking to use a single config option like networkingMode to indicate one of multiple different modes including noEncap mode. So, we could have:
Then let us talk about cloud native networking, another aspect I have different ideas with you. I would add a separate mode for native networking, like:
I would think about IPAM separately. For how to do IPAM for cloud managed K8s, we need to discuss with public cloud teams (they might and might not like to make their CNI to be an IPAM plugin of Antrea). Let me know what you think. Also like to learn others' opinions: @antoninbas @tnqn @salv-orlando. |
The major difference between my 1-4, and 5: in 1-4 Pod IPs are in different network from Nodes and the underlay network might not recognize Pod IPs; but in 5 underlay network is aware of Pods IPs and Pods IP and Node IPs could be in the same network (and even subnet). |
Thought over. We could also choose to remove 4 and document MTU should be explicitly set if all Nodes are in the same subnet. Just that it wont work for MTU auto-discovery that we might support later. But anyway I would prioritize 3 over 4. |
let us have some discussion tomorrow? |
@jianjuns incorporated your comments into the updated proposal. Hopefully it covered all our use cases. |
Adding this tentatively to the v0.3.0 milestone, although we probably need some additional design work / scoping to decide what should go into the release. |
@antoninbas what is timeline for v0.3.0 release? |
@susanwu88 Jan 22nd. You can see that by clicking on the milestone name. |
Moving this out of the 0.3.0 milestone, as discussed at the 01/15/2020 community meeting. |
Moving this out of the 0.4.0 milestone, as discussed at the 01/29/2020 community meeting. |
feature implemented in #340 |
Describe what you are trying to solve
Antrea to support other encapsulation mode for inter-worker-node pod traffic.
Describe the solution you have in mind
Antrea to allow users to specify additional encapsulation mode.
Describe how your solution impacts user flows
An user would need to modify antrea-cni.conf in Antrea deployment manifest and/or additional knobs (see later) that updates Antrea-agent.conf current content.
Describe the main design/architecture of your solution
The following knobs shall be added to Antrea-agent.conf.
PodTrafficEncapMode : determines how inter-node pod traffic's encapsulation mode. It has the following options
:Encap -- pod's service (request/reply of services provided by pods) traffic always encapsulated, encapsulation protocol is provided by TunnelType knob. Pod's own request traffic to other destinations are masqueraded. This will be the default mode, and is already supported
:NoEncapMasq-- Pod's traffic is not encapsulated nor masqueraded. Pod's IP is visible to worker node's network always. This mode shall works best in cloud or on-prem where pod's IP are known to worker node's network. This mode may also work on-prem where with out-of-band configure, worker nodes's network is made aware of POD CIDRs
:NoEncap -- Pod's service traffic is not encapsulated , however pod's request traffic are masqueraded. This mode works in on-prem case where all worker nodes are on the same l2 subnet.
:Auto -- In this mode, depends on worker node's subnet, Pod's service traffic is in Encap mode if worker nodes are on the same subnet, and in NoEncap mode if worker nodes are on different subnet. Pod's request traffic are masqueraded.
please find detailed proposal at https://docs.google.com/document/d/1y0P-BZ63-JqALZjPPONXNJdIlnyWJhOGHjd4OLA0hDA/edit#
Alternative solutions that you considered
A list of the alternative solutions that you considered, and why they fell short. You can list the pros and cons of each solution.
Test plan
Describe what kind of tests you plan on adding to exercise your changes.
Additional context
Any other relevant information.
The text was updated successfully, but these errors were encountered: