Skip to content

Conversation

@lucasmundim
Copy link
Contributor

This PR implements PR #371 ideas, keeping the existing behaviour but allowing users to opt in for a full overlay regardless of the subnet the nodes are in

--enable-overlay When enable-overlay is set to true, IP-in-IP tunneling is used for pod-to-pod networking across nodes in different subnets. When set to false no tunneling is used and routing infrastructure is expected to route traffic for pod-to-pod networking across nodes in different subnets (default true)
--enable-pod-egress SNAT traffic from Pods to destinations outside the cluster. (default true)
--enable-pprof Enables pprof for debugging performance and memory leak issues.
--full-overlay When full-overlay is set to true, it changes "--enable-overlay=true" default behavior so that IP-in-IP tunneling is used for pod-to-pod networking across nodes regardless of the subnet the nodes are in. When set to false, the default, default "--enable-overlay=true" behavior is used
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about using --overlay-type instead, with a default value regional or subnet. And the other option is type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a good idea to me. I don't know if I understood your question correctly ("And the other option is type?"). Could you elaborate a bit more?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, typo. I meant "And the other option is full".

So user needs to set both

--enable-overlay=true
--overlay-type={subnet,full}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, typo. I meant "And the other option is full".

Now I got it :)

So user needs to set both

--enable-overlay=true
--overlay-type={subnet,full}

Yes, it makes sense. I've updated the code to reflect that.

@lucasmundim lucasmundim changed the title Introduces the option --full-overlay, to always generate IPIP tunnels regardless of node subnets Introduces the option --overlay-type={subnet,full}, to be able to always generate IPIP tunnels regardless of node subnets Mar 15, 2019
@murali-reddy
Copy link
Member

Did basic testing switching flag --overlay-type={subnet,full}. Code changes look good..

@murali-reddy murali-reddy merged commit 8f9729a into cloudnativelabs:master Mar 23, 2019
@lucasmundim lucasmundim deleted the full_overlay branch March 27, 2019 04:13
@lucasmundim lucasmundim restored the full_overlay branch March 27, 2019 04:15
@aauren aauren mentioned this pull request Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants