docker-development-youtube-series icon indicating copy to clipboard operation
docker-development-youtube-series copied to clipboard

Redis Kubernetes: Redis connecting to slave instead of master

Open Vijay-Nirmal opened this issue 2 years ago • 0 comments

When connecting to Redis from code or cli (from a different pod) using redis://redis as the host/url, it connecting to slave instead of master. This causes READONLY You can't write against a read only replica error. Any idea how to solve the issue? How does the DNS resolver knows the master's ip?

Vijay-Nirmal avatar Dec 19 '22 14:12 Vijay-Nirmal