Connect to Dragonfly on Kubernetes

Probably a dumb question
I’ve installed dragonflydb on a k8s with the helm chart and i’m questioning myself how do i connect to it.
I know it mimics the Redis API, so i can use redis cli or SDK, but where should i connect to?
Is it to the redis instances?
Because i tried to connect to the manager and scheduler with the redis cli, but it doesn’t work.

Thanks

:wave: Hi, can you provide more information - where’s your k8s cluster running?
If it’s locally, I suppose the Dragonfly port can be exposed.
If it’s in a cloud environment, which requires much more strict authentication, you can always auth with the cloud tools (i.e., gcloud CLI) and utilize port-forward?

As far as I know, you should still connect to the Dragonfly port, not the k8s scheduler/API server ports.

it’s running in the cloud yes, but apart from the kubernetes, authentication and so on, let’s use for example port-forward.

where should i port-forward to?

these are all the svcs i have running in the dragonfly namespace

Please try the master node. :smiley:

so if i’m inside the cluster, with a running pod in the same namespace (dragonfly-system) and i do redis-cli, what should i use?

yes that works, but that way i am connected to the redis, right?

not to dragonfly :thinking:

I am a little confused by the container name though.

Haven’t tried our helm chart recently, but if you don’t mind, redis-cli to the master node 10.0.231.95, and maybe we can find it out using the INFO command.

yes that works, i’m there. when i do the INFO command, it asks for auth

that was my question though, because this is running redis from bitnami. so i was wondering how does dragonfly operates then

there you go, the info command
message.txt (5.16 KB)

Did you use Dragonfly’s helm chart? https://www.dragonflydb.io/docs/getting-started/kubernetes
I am also very confused, sorry about that. I will check with the team and get back to you.

yes i did. with the default values, then customized it to connect to an external mysql, but it was only that.

Hey, WHich bitmani chart is this? I don’t think we support direct interoplation into the binami’s redis chart? :thinking:

The current supported way for K8s users is the new Operator: https://github.com/dragonflydb/dragonfly-operator

Our Helm chart should also work though. With Helm Chart or the Operaotr, You can use the service that gets created to talk to the instance.