-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Pods on different nodes cannot communicate (flannel/vxlan) #1719
Comments
BTW, as per flannel-io/flannel#1243 (comment) I did try Same behaviour on Fedora31. On the same hosts, I tried (without k3s installed, so to avoid id clash):
And it worked fine, I could ping vxlan device IPs between the hosts. |
@rytis Did you try |
I've tried it now (on both sides, master and worker), same effect, no ICMP replies (reqs are appearing on the other node just as before):
|
Please check the fdb info, the dst IP should be the node IP :
|
It's the peer's IP: Master:
Worker:
|
@niusmallnan just a bit more info, I just realised that the MAC addresses in FDB don't correspond to anything on those two machines: Master:
Worker:
What are they?.. |
Check if you enabled masqerading and iptables-legacy. For a more complete list of firewall rules and required open ports: https://rancher.com/docs/rancher/v2.x/en/installation/options/firewall/. Update 1: Update 2: Update 3: Update 4: |
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 180 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
Version:
k3s version v1.17.4+k3s1 (3eee8ac)
K3s arguments:
/usr/local/bin/k3s server --no-deploy=traefik
Describe the bug
Pods on different nodes cannot communicate. Pods on the same node can.
To Reproduce
** Default install
** SELinux disabled
** Grub options:
cgroup_memory=1 cgroup_enable=memory cgroup_enable=cpuset systemd.unified_cgroup_hierarchy=0
** Firewall rules added:
firewall-cmd --permanent --add-port=6443/tcp # kubernetes api
firewall-cmd --permanent --add-port=10250/tcp # kubelet
firewall-cmd --permanent --add-port=8472/udp # flannel
firewall-cmd --permanent --zone=trusted --add-source=10.42.0.0/16 # pods
firewall-cmd --permanent --zone=trusted --add-source=10.43.0.0/16 # services
firewall-cmd --reload
[root@k3s-master ~]# k3s kubectl get nodes
NAME STATUS ROLES AGE VERSION
k3s-worker.localdomain Ready 61m v1.17.4+k3s1
k3s-master.localdomain Ready master 66m v1.17.4+k3s1
Expected behavior
Pods on different nodes can communicate. Pings to flannel interface IPs on different nodes should work.
Actual behavior
Deployed pods cannot communicate (master -> worker)
Pings to flannel interface don't work either
Whenever I ping from master to worker node I can see ICMP requests arriving at the worker node, but there's no echo reply sent back.
Additional context / logs
Master:
Worker:
The text was updated successfully, but these errors were encountered: