Pods communication [Solved]

Hello,
I have cluster running on rancher 2.2.1

I have two containers:
xibosignage/xibo-xmr
and
xibosignage/xibo-cms

xibo-cms needs to communicate with xibo-xmr via TCP/50001
There will be clients that will communicate with xibo-xmr via TCP/9505

So, I tried to create Ingress rule, but seems like I can only setup one of these ports for Ingress.

I am not sure how to resolve this?

Thank you!

Ingress is for exposing something that sPeaks HTTP to the outside world and routing based on the request. If you have two things that want to communicate within the cluster, they can just talk directly to each other through a ClusterIP service.

Thanks Vincent!
Here is what I did:

Used HostPort for TCP/9505 because that is for clients (outside the container network)
ClusterIP (TCP/50001) for xibo-cms to communicate with xibo-xmr…

Now, my question is where do I find the IP to specify as destination for both sources?

I resolved this I think; used HostPort for both TCP/9505 and TCP/50001
Then setup Node Scheduling to always run this container on one node; this will be a problem if node does go down. But, since I have another container that needs to talk to this one, I think this is probably my best option.

Using node ports for external access is a bit limiting IMO, you would be better off using Ingress (node ports also force callers to have knowledge of the ports you use so are somewhat of a leaky abstraction). For pod 2 pod communication just route internally per Vincent’s suggestion.