How to connect via socket io to rasa x production pod

Hi

I have deployed my RASA X instance on a kubernetes cluster. Currently I am able to access RASA X UI.

However, I am not sure what is the best way to expose rasa production pod which is running on 5005 to outside world so that I can connect to it via socket io

Are you using our helm configuration? If so, you will find an nginx pod that exposes the rasa-production 5005 port. Otherwise, you can directly open 5005 via type: LoadBalancer.

Hi @stephens

Thank you for the suggestion.

I used helm configuration for deployment. My nginx pod is currently listening on 8081 and routes the traffic to rasa-x pod which is running on 5002 (as I am able to access rasa-x console from outside).

Can you help me with below 2 points

  1. Can the same nginx pod be used to route traffic to rasa-production which is running on 5005.
  2. What is the recommended approach -
  • Exposing via nginx pod or
  • Directly making the rasa-production of type : LoadBalancer
  1. Can the same nginx pod be used to route traffic to rasa-production which is running on 5005.

Yes, the one nginx will re-direct to rasa-production and rasa-x. You’ll find the nginx ingress config that does the redirect for rasa-production here.

It’s your call. might as well go with the nginx config.