Skip to content

Commit

Permalink
Add conntrack to multitenant plugin
Browse files Browse the repository at this point in the history
With the exception of userspace proxy mode
  • Loading branch information
Juan-Luis de Sousa-Valadas Castaño committed Sep 14, 2020
1 parent 79fd230 commit a464217
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/network/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ func New(c *OsdnNodeConfig) (*OsdnNode, error) {
case networkutils.MultiTenantPluginName:
policy = NewMultiTenantPlugin()
pluginId = 1
// Userspace proxy is incompatible with conntrack.
if c.ProxyMode != kubeproxyconfig.ProxyModeUserspace {
useConnTrack = true
}
case networkutils.NetworkPolicyPluginName:
policy = NewNetworkPolicyPlugin()
pluginId = 2
Expand Down

0 comments on commit a464217

Please sign in to comment.