Skip to content
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

Removing the GatewayPrivateIP parameter from the network module #173

Merged
merged 2 commits into from
Aug 28, 2020

Conversation

alacuku
Copy link
Member

@alacuku alacuku commented Aug 18, 2020

Description

This PR removes the GatewayPrivateIP parameter from the network module. The Linux kernel does not strictly require a IP address for the tunnel interface in order to route the traffic through it. By removing this parameter we greatly simplify the configuration of a LIQO cluster.
Now the traffic from hosts to remote pods is NATed in two different ways:

  • the local cluster have not been NATed by the remote one: we take the first IP address of the podCIDR of the cluster
  • the local cluster have be NATed by the remote one: we take the first IP address from the new subnet

The parameter have been removed from the install script and from the helm chart as well.

The route-operator gets the podCIDR parameters from the clusterconfig.policy.liqo.io CRD.

How Has This Been Tested?

The unit tests of the network module have been updated to not consider the iptables rules and routes involving the GatewayPrivateIP parameter.

End to End tests with two k8s-clusters:

  • without podCIDR conflicts, no NAT required
  • with podCIDR conflicts, NAT configured

Both pod to pod traffic and node to pod traffic have been tested.

@alacuku alacuku force-pushed the kcl/removingGatewayPrivateIp branch from a0fca3c to d0b2fb2 Compare August 18, 2020 15:47
@pull-request-size pull-request-size bot added size/M and removed size/S labels Aug 18, 2020
@alacuku alacuku force-pushed the kcl/removingGatewayPrivateIp branch 2 times, most recently from 7479198 to dc2c244 Compare August 18, 2020 16:09
@palexster
Copy link
Member

palexster commented Aug 18, 2020

/hold Waiting to fix the CI cluster in order to run E2E tests.

@palexster palexster added the hold Prevent bot merging label Aug 18, 2020
@alacuku alacuku force-pushed the kcl/removingGatewayPrivateIp branch 7 times, most recently from be2436d to d356f5b Compare August 19, 2020 07:52
@fraborg
Copy link
Member

fraborg commented Aug 20, 2020

/rebase

@adamjensenbot
Copy link
Collaborator

Rebase status: success!

@alacuku alacuku force-pushed the kcl/removingGatewayPrivateIp branch 2 times, most recently from c7d5620 to 2072a4c Compare August 21, 2020 14:51
@palexster
Copy link
Member

/rebase

@adamjensenbot
Copy link
Collaborator

Rebase status: success!

@palexster
Copy link
Member

Hi @alacuku ! Thanks for this! Could you please update the install documentation and the installer script accordingly to this modification?

@frisso
Copy link
Member

frisso commented Aug 24, 2020

Hi @alacuku ! Thanks for this! Could you please update the install documentation and the installer script accordingly to this modification?

The install documentation does not mention the gateway already.
The script, instead, needs to be updated.

@alacuku alacuku force-pushed the kcl/removingGatewayPrivateIp branch from f1e5a16 to 1ee67a6 Compare August 25, 2020 09:12
@pull-request-size pull-request-size bot added size/L and removed size/M labels Aug 25, 2020
@alacuku alacuku force-pushed the kcl/removingGatewayPrivateIp branch from 1ee67a6 to 49f6b0f Compare August 25, 2020 10:17
@alacuku alacuku force-pushed the kcl/removingGatewayPrivateIp branch from 49f6b0f to 0ede4ac Compare August 25, 2020 10:34
@alacuku alacuku force-pushed the kcl/removingGatewayPrivateIp branch 6 times, most recently from a51e030 to b7ca5a2 Compare August 25, 2020 11:30
@alacuku
Copy link
Member Author

alacuku commented Aug 25, 2020

Hi @alacuku ! Thanks for this! Could you please update the install documentation and the installer script accordingly to this modification?

done, and updated the helm chart as well.

@palexster
Copy link
Member

/rebase

@adamjensenbot
Copy link
Collaborator

Rebase status: success!

@alacuku alacuku force-pushed the kcl/removingGatewayPrivateIp branch from b7ca5a2 to e29c628 Compare August 28, 2020 10:50
@palexster
Copy link
Member

/rebase

@palexster palexster requested a review from fraborg August 28, 2020 12:00
@adamjensenbot
Copy link
Collaborator

Rebase status: success!

Copy link
Member

@palexster palexster left a comment

Choose a reason for hiding this comment

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

/approve

@palexster palexster merged commit 5d87c4a into master Aug 28, 2020
@palexster palexster deleted the kcl/removingGatewayPrivateIp branch August 28, 2020 12:59
@alacuku alacuku mentioned this pull request Sep 23, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold Prevent bot merging size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants