flannel icon indicating copy to clipboard operation
flannel copied to clipboard

pods can't communicate with each other when in different subnet

Open winkee01 opened this issue 2 years ago • 1 comments

Environment

I have two nodes in cluster, A master and C is worker, B is a client machine(macOS) for hosting a VM (C). canping As the diagram shows,

  • A has ip 10.10.0.1
  • B has ip at
    • eth0 - 10.10.0.3
    • bridge100 - 172.16.3.1
  • C has ip 172.16.3.7

C can ping 10.10.0.1 with success, and C as a worker node, joins A's cluster succefully.

I deploy an app which has two repicas, pod on A has ip 10.244.0.7, pod on C has ip 10.244.1.3, from what I know about the network requirement of kubernetes, pod A should be able to talke to pod C directly, but unfortunately, when I enter pod A, and try ping C's IP, it failed.

So, this violates Kubernetes's network mode requirement?

winkee01 avatar Dec 04 '21 16:12 winkee01

Hi. Do you still have this issue? Could you share your flannel config? Are you using VXLAN tunnel to connect the pods?

rbrtbnfgl avatar Jul 05 '22 09:07 rbrtbnfgl

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 25 '23 20:01 stale[bot]