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
Bind interface is chosen not properly #304
Comments
@m-abramovich , I've prepared a PR botpress/botpress#645 adding ability to specify hostname. As for unpredictable self-behavior, it may come from node's |
@epaminond, Understood, thank you. |
feat(core): hostname bot listens to can be customized (resolve #644)
Still it appears (not 100% of time)
|
running to into the same issue trying to run on kubernetes.... anyone have a fix? also latest tag on dockerhub is gone |
When process is starting is should bind to interface : port.
Port can be specified via environmental variable BOTPRESS_PORT.
But interface doesn't have BOTPRESS_HOST option to be set. Thus Botpress decides himself what interface to choose.
If you start Botpress on local machine it will bind to host 0.0.0.0 (all interfaces) but will print that it binded to localhost.
But when you start it remotely in Kubernetes it binds to interface of SVC but not 0.0.0.0 (not even own host).
So we have two problems here:
How it looks in the system.
This is IP of the host where Botpress is running. Thus I expect it to bind either to 0.0.0.0 or 127.0.0.1 or 10.42.110.150:
Here is service address which is load balancer in front of host of Botpress:
But all of a sudden Botpress is trying to bind to foreign address 10.43.210.138 instead of own:
The text was updated successfully, but these errors were encountered: