How to access Redis Sentinel from outside of the docker network?

2/22/2022

I have a Redis Sentinel service deployed in a server (docker swarm). My Nest application deployed in another server (Kubernetes), and I want to access that Redis Sentinel. When I tried to call the Redis Sentinel, it would return the internal IP address of the master Redis in the docker network. So, I can not reach the Redis. Is there any way to help me get the correct IP address and the port that allows me to reach the Redis?

Note: If I deploy my app inside the docker network (sentinel network), everything is fine, and I can access the master Redis.

Any help would be appreciated.

-- Erika
docker
kubernetes
nestjs
node.js
redis

0 Answers