First of all, I found out about Rancher only yesterday and since then I played with it non-stop, went through most of the blog articles and I keep discovering awesome features. Thank you so much for such a great app!
Second, I apologize in advance for what is probably a stupid question due to my lack of completely understanding networking.
So, I created a service with a simple test container, that I named topicservice. Then I added a load balancer for this service with simple settings: it listens to port 4040 and it calls my container on its internal port. I call it with <host IP>:4040 and everything works great!
Then I tried to add a request path to it, so it will only answer to <host IP>:4041/topic. I created a new LB same as the original one, with Source Port = 4041. In the Advanced routing options I left the Request host empty, same with Source Port (thinking it will use the Source Port from the main definition), added /topic in the Request Path, selected the target service to be my topic service and its internal port in the Target Port. Saved, started it and tried the same <host IP>:4041/topic and I get 404. If I try <host IP>:4041 with no path I get no service is available (which is what I expected).
My main goal is to have several services on the same LB (same as Alena showed in a blog post I’ve read - thanks for all your posts, Alena, they are great!) and make them answer to different paths. But I am not able to do so even with one service. Alena’s post showed how to do this but using 2 different public URLs, chat.example.com and web.example.com but all I really want is to be able to call my services internally based on the path, not exposed as separate websites.
Can you please help me understand what I’m doing wrong and how to achieve what I want?
Thanks a lot for all you do and for any help I can get!