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

Pod to pod cannot communicate when on different node #6016

Open
adif0 opened this issue May 27, 2024 · 5 comments
Open

Pod to pod cannot communicate when on different node #6016

adif0 opened this issue May 27, 2024 · 5 comments

Comments

@adif0
Copy link

adif0 commented May 27, 2024

My setup involving 6 worker node spread across 3 subnet. 2 worker node on each subnet. If i enable calico wireguard and vxlan encapsulation then pod to pod communication work on all the subnet but if i disable wireguard and vxlan encapsulation then pod to pod communication between subnet failed. I have three scenarios

  • enable calico wireguard and vxlan encapsulation then pod to pod communication work on all the subnet
  • disable wireguard and vxlan encapsulation then pod to pod communication between subnet failed but same subnet working
  • disable wireguard and enable vxlan encapsulation then pod to pod communication not working between all subnets

I want to avoid using both wireguard and vxlan encapsulation to get the best possible performance. Any solution to fix this with disabling wireguard and vxlan encapsulation.

@manuelbuil
Copy link
Contributor

vxlan and wireguard are two different encapsulation methods, I don't understand what do you mean by enabling both at the same time. If you don't want any type of encapsulations, you need a flat network where clusterIPs are understood by the routers connecting nodes so that they know where to send packets to

@adif0
Copy link
Author

adif0 commented May 28, 2024

at the moment, the only configuration that work is by enabling wireguard and vxlan encapsulation set to always. I want to be able to use without wireguard as i noticed a performance drop when enabling but disabling it cause pod to pod not able to communicate between different subnet.

@manuelbuil
Copy link
Contributor

Can you share the configuration you are using to enable wireguard and vxlan encapsulation? Thanks

@adif0
Copy link
Author

adif0 commented May 28, 2024

I was able to find a workaround. Setting a value of VxlanPort: 8472 under FelixConfiguration works. Now my calico setting is with wireguard disabled and VXLAN crosssubnet mode. I do wonder whether is possible to disable encapsulation entirely because when i try to disable it VXLAN and wireguard. the cluster network breaks.

below is the new configuration
FelixConfiguration
image
IPPool
image

@manuelbuil
Copy link
Contributor

If depends on the infrastructure connecting the subnets. If you don't use any encapsulation, they must allow traffic with sourceIP and destIP coming from a range that is not the range of the nodes. Normally, hyperscalers don't allow this and that's probably what you are experiencing

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

No branches or pull requests

2 participants