-
Notifications
You must be signed in to change notification settings - Fork 90
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 have created rec service(statefulset) as mentioned in documentation. How to connect this rec using StackExchange.Redis #192
Comments
Hi, You will indeed need to create a database (managing Redis databases is the primary purpose of a Redis Enterprise cluster). You can find an example here: Once the database is created, a k8s service will automatically be created for you and that service is what you would use to connect your client application to the database (just like you would use any k8s service). Hops this helps. Laurent. |
hi @laurentdroin Though i was not successfull to connect using redisInsight (i tried port-forwarding my headless service and try connecting in RedisInsight) |
Hi, Yes, you called the database "db", you should see two services, "db-headless" and "db". You can use either (one is a ClusterIP service and goes through an internal k8s Load Balancer, the other binds directly to the relevant pods, and so choose what you prefer, even if the database secret, IIR, lists the headless service). Port-forwarding should work.
Laurent. |
i port forwarded mine *db-headless service, and indeed was able to connect using RedisInsight.
|
Hi, I am not familiar with Stackexchange.Redis and you might need to contact Redis Enterprise support if we cannot resolve this but just looking at the Stackexchange.Redis documentation, the code sample you posted here seems to match this documented scenario:
Because you have It then would be logical to get the So overall, it would seem to me that you need to find a way to specify the password. I did a quick search and I think the following might help you: Cheers, Laurent. |
Thank you @laurentdroin , This was helpful Mine last question regarding REDB :- Is there a way to specify dedicated port(and hostname) for my redb service? |
Hi, It is not possible to specify the database port in the REDB manifest at the moment (although this has been requested, so it is possible that such a feature will be implemented in a future version). I hope this helps, Laurent. |
Hi, Following up on this. The latest release (6.2.8-2) now allows specifying the database port in the REDB manifest via the Cheers, Laurent. |
How to connect to cluster using stackexchange.redis
Do I need to create DB and connect to it. If so how can i do that
Is there any documentation around this?
I want to connect to this redis cluster from other apps running in the cluster.
The text was updated successfully, but these errors were encountered: