-
Notifications
You must be signed in to change notification settings - Fork 275
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
Cannot access application running on a pod of another Node #5164
Comments
You can ping the pod from all nodes but you can't access its server on port 9090 from other nodes, right? Is it possible that you have wrong network policies? Network policies don't apply to localNode-pod communication, which could explain what you see Are you able to track where the TCP packet with dest-port 9090 gets dropped? |
I did a tcpdump of curl request from one of the nodes,
There is SYN request to the pod IP 10.42.2.3 and a SYN ACK response but afterwards connection is not established, and there are repeated attempts to reconnect. Please how can I determine why the TCP connection is dropped or not established? |
Can you verify if the curl client is responding to the SYN-ACK? Do tcpdump on the client's calico interface. Can you please show the output of |
No network policy was defined. This is the response for
This is the
The verbose curl response is shown below.
The request was sent from node app005 to Pod 10.42.2.3 through the flannel interface, I didn't get any tcpdump on cali interface for the request.
This is the flannel interface tcpdump of the node hosting the pod.
|
that |
I disabled
Thanks @manuelbuil |
Closing :) |
Environmental Info:
RKE2 Version:
rke2 version v1.28.5+rke2r1 (adcd936)
go version go1.20.12 X:boringcrypto
Node(s) CPU architecture, OS, and Version:
Linux 5.4.17-2136.324.5.3.el8uek.x86_64 #2 SMP Tue Oct 10 12:43:39 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux
Oracle Linux Server 8.8
Cluster Configuration:
3 server nodes, cni- Canal
Describe the bug:
I deployed a pod on RKE2 cluster. I can connect to the pod from the node where pod is hosted but I can't connect to the pod from other nodes. The pod is deployed on node app007 and IP is 10.42.2.3
kubectl get pods -o wide
outputprometheus-68dfb8ff68-vc2tg 1/1 Running 0 13h 10.42.2.3 app007 <none> <none>
From node app007 I can connect to application running on the pod on port 9090
From other nodes, I can't connect to the application running on the pod on port 9090 .
I can ping the pod IP 10.42.2.3 from all the nodes.
Steps To Reproduce:
Expected behavior:
The application running on a pod should be accessible from any node on the cluster.
Additional context / logs:
UDP port 8472 is open on all nodes
I can also ping the pod IP 10.42.2.3 from other nodes and see the request and reply in tcpdump.
The text was updated successfully, but these errors were encountered: