I am using tyk docker container to proxy [URL rewrite] requests to my services. I have deployed this in a docker swarm which has two nodes. URL rewrite is not working if the target container is not on the same node as tyk container. It is working fine if tyk and my API service are running on same docker swarm node. I tried CURL from tyk container to my API [running on different node] and it is working fine.
The request is timing out after 2 mins with below error.
Well, it is a networking issue.
Ensure that both of your containers are inside the same swarm network.
Also how you specify the address of the upstream: using ingress load balancer url?
Thanks for the reply.
yes, it could be network issue, but when curl the URL from tyk container it is responding OK. Problem is only when it is accessed through tyk application [URL Rewrite]. Both containers are in the same network overlay. Also it is working when both containers are running on same docker swarm node.