Interview Prep/Networking/Containers, Kubernetes, IPv6 and packet captures

Pods on the same node talk fine, but cross-node pod traffic fails on a self-managed cluster running Calico or Flannel.

AdvancedTroubleshootingContainers, Kubernetes, IPv6 and packet captures
Answer

Likely causes → The overlay/underlay protocol is blocked between nodes: VXLAN uses UDP 4789 (Flannel's default VXLAN port is 8472 on Linux), Calico IP-in-IP uses IP protocol 4, Calico BGP needs TCP 179, WireGuard UDP 51820. Security groups or host firewalls often allow only TCP/UDP. On AWS, source/dest check also breaks non-encapsulated routing.

Diagnose →

kubectl get pods -o wide            # pick two pods on different nodes
sudo tcpdump -ni eth0 'udp port 4789 or udp port 8472 or ip proto 4' -c 20   # on the receiving node
kubectl -n kube-system exec <calico-node-pod> -- calicoctl node status       # BGP peers Established?

Encapsulated packets leave node A but never arrive at node B = firewall in between.

Fix → Allow the overlay protocol between node SGs (self-referencing SG rule for all traffic between nodes is common), or disable source/dest check if routing without encapsulation.

Prevent → Codify node-to-node SG rules with the CNI choice and run a cross-node connectivity check (e.g. cilium connectivity test or a simple DaemonSet ping mesh).

All Networking questions Roadmap: Networking for DevOps

More on Containers, Kubernetes, IPv6 and packet captures