Skip to content
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

I'm so confused by redis sentinel #1165

Open
jeremych1000 opened this issue Dec 12, 2024 · 2 comments
Open

I'm so confused by redis sentinel #1165

jeremych1000 opened this issue Dec 12, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers question Further information is requested

Comments

@jeremych1000
Copy link

Describe your question
Hello! I'm trying to set up redis sentinel on Kubernetes, and have been using your operator for a while (just normal redis).

I'm very confused to how this operator sets up sentinel.

Can I please ask some questions:

  1. I understand sentinel watches redis. Does there have to be a 1:1 mapping between sentinel and redis, or can it be one to many?
  2. The redis-sentinel helm chart seems to start a statefulset of redis-sentinel, however is this redis itself? Or do I need a statefulset of redis-sentinel, and one deployment of redis-replication?
  3. I have a requirement to have a loadbalancer attached to each of my redis nodes, so that I can hit them directly (not through an ingress). How should I configure this? It seems the redis-sentinel chart only makes one service? I don't want it to be loadbalanced.

What version of redis-operator are you using?

redis-operator version: v0.18.1

@jeremych1000 jeremych1000 added the question Further information is requested label Dec 12, 2024
@drivebyer
Copy link
Collaborator

drivebyer commented Dec 13, 2024

Does there have to be a 1:1 mapping between sentinel and redis, or can it be one to many?

Yes, a one-to-many (1:N) configuration is supported, as defined here: GitHub Reference.

The redis-sentinel helm chart seems to start a statefulset of redis-sentinel, however is this redis itself?

No, the StatefulSet consists only of Sentinel instances.

I have a requirement to have a loadbalancer attached to each of my redis nodes, so that I can hit them directly (not through an ingress). How should I configure this?

Currently, this is not supported.

@drivebyer drivebyer added documentation Improvements or additions to documentation good first issue Good for newcomers labels Dec 13, 2024
@jeremych1000
Copy link
Author

Ah I see. What would I normally pair the sentinel helm chart with? Redis? Or redis replication?

I can work around the loadbalancer service limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants