Replies: 1 comment
-
Hello @croessner! Based on my experience, when using go-redis, we can only specify one service name for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am new to Kubernetes (still learning on Udemy course) and I installed the redis-operator with the redis-cluster:
So far so good. I already guess that I have to use a headless service, but what do I have to use right now in an application, to connect to this cluster? My expectation would be to define three leaders somehow.
I did not fetch the values for the cluster or the operator. I simply started with the quick start and have no further modifications done.
It would be nice to have some usage information (Also for sentinel/replication which I tried before...)
Thanks in advance
Christian
Update:
I think I must explain, what I am looking for:
I have written a Go application (Open-Source, Nauthilus on Github) that uses go-redis. And go-redis can deal with all kinds of Redis configuration. Therefor I have one code block:
As you can see, Addrs expects addresses. And now I do not no what to set here. Normally it would be something like:
"addressA:6379 addressB:6379 addressC:6379" and redis-go will do the rest. Do I need only the leader service or also the additional or using the headless and pointing directly to all three pods?
Maybe now my question is more clear :-)
Beta Was this translation helpful? Give feedback.
All reactions