-
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
Introduce networkMode config option and ipsecEncap mode for Agent #286
Conversation
Thanks for your PR. The following commands are available:
These commands can only be run by members of the vmware-tanzu organization. |
@tnqn @antoninbas @salv-orlando @suwang48404: like to learn your thoughts on the network mode config option. |
Introduce networkMode config option, which now supports two modes: encapNormal (for normal overlay tunnels) and ipsecEncap (for IPSec encyption of tunnel traffic). Later, there could be more modes added like noEncap, hybrid (encapsulation only for traffic across Nodes in the different underlay subnets) passthrough (use cloud native networking / underlay network for connectivity), etc.. Remove the enableIPSecTunnel option and use ipsecEncap networkMode to enable IPSec encyption. This is also to avoid misconfiguration of IPSec encyption when later we have noEncap and other modes - IPSec could be enabled for only tunnel traffic.
fc0b4df
to
989671c
Compare
Thanks for your PR. The following commands are available:
These commands can only be run by members of the vmware-tanzu organization. |
Just personal feeling, the supported values are not very symmetric, I mean |
You must be right. I could only argue "passthrough" is different from other modes too. Then do we need a separate flag for it too? |
After thinking about this, I feel the same way as Quan. I think we should keep "ipsec enable" as a separate dimension and validate option consistency in our code. |
sorry for late reply. two separate knobs make sense to me
|
Ok. I will drop this PR then. Also let me know if you prefer another name for the option to enable IPSec - it is now "enableIPSecTunnel". |
The name is fine as far as I'm concerned, since IPsec can only be enabled for tunnels created by Antrea. |
Introduce networkMode config option, which now supports two modes:
encapNormal (for normal overlay tunnels) and ipsecEncap (for IPSec
encyption of tunnel traffic). Later, there could be more modes added
like noEncap, hybrid (encapsulation only for traffic across Nodes in
the different underlay subnets) passthrough (use cloud native
networking / underlay network for connectivity), etc..
Remove the enableIPSecTunnel option and use ipsecEncap networkMode
to enable IPSec encyption. This is also to avoid misconfiguration
of IPSec encyption when later we have noEncap and other modes -
IPSec could be enabled for only tunnel traffic.