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

[redis] Redis cluster with custom config file not working #490

Open
botzill opened this issue Apr 8, 2019 · 8 comments
Open

[redis] Redis cluster with custom config file not working #490

botzill opened this issue Apr 8, 2019 · 8 comments
Assignees
Labels
Milestone

Comments

@botzill
Copy link

@botzill botzill commented Apr 8, 2019

Hi.

It's a little confusing for me this part. I have setup a Redis cluster, but it seems to not operate in cluster mode. I did create a custom config file to add auth and other stuff. Now should I add also cluster options: https://kubedb.com/docs/0.11.0/guides/redis/clustering/overview/#redis-cluster-configuration-parameters or they are added automatically if I deploy a cluster mode? It seems that not added. Can you guide me on this?

Thx.

@botzill

This comment has been minimized.

Copy link
Author

@botzill botzill commented Apr 8, 2019

@botzill

This comment has been minimized.

Copy link
Author

@botzill botzill commented Apr 8, 2019

OK, I changed settings from: https://github.com/kubedb/redis/blob/598eb51c5d6f306804b41e4fe732f42295bc3c9e/pkg/controller/redis_config.go#L25, now my config looks like:

cluster-enabled yes
cluster-config-file /data/nodes.conf
cluster-node-timeout 5000
cluster-migration-barrier 1
dir /data
appendonly yes
protected-mode no

databases 5
maxclients 50000

loglevel debug
requirepass  mypass

But now I have the following when I run:

CLUSTER INFO
cluster_state:fail
cluster_slots_assigned:0
cluster_slots_ok:0
cluster_slots_pfail:0
cluster_slots_fail:0
cluster_known_nodes:1
cluster_size:0
cluster_current_epoch:0
cluster_my_epoch:0
cluster_stats_messages_sent:0
cluster_stats_messages_received:0

and when I try to a value I get:

(error) CLUSTERDOWN Hash slot not served

I'm using version 5.0.3-v1.

Thx a lot.

@botzill

This comment has been minimized.

Copy link
Author

@botzill botzill commented Apr 8, 2019

@tamalsaha can you take a look at this, maybe I'm doing smth wrong?

@tamalsaha

This comment has been minimized.

Copy link
Member

@tamalsaha tamalsaha commented Apr 8, 2019

@shudipta, can you take a look?

@shudipta

This comment has been minimized.

Copy link
Member

@shudipta shudipta commented Apr 9, 2019

The problem is happening for using requirepass field in redis.conf. Currently, we don't support requirepass (for client authentication).

@tamalsaha tamalsaha added the db/redis label Apr 9, 2019
@botzill

This comment has been minimized.

Copy link
Author

@botzill botzill commented Apr 15, 2019

Hi, thx.

Do you plan to add this feature as well?

@shudipta

This comment has been minimized.

Copy link
Member

@shudipta shudipta commented Apr 18, 2019

@botzill

Due to some security issues, we aren't supporting this currently. We are planning to add this feature in next release.

@tamalsaha

This comment has been minimized.

Copy link
Member

@tamalsaha tamalsaha commented Apr 18, 2019

To clarify on the point of "security issue", current we are using configmap for the configuration file. But requirepass requires use to specify the password. So, we need to switch to using Secret instead of configmap to provide the custom config.

We are looking to make this change in a following release.

@tamalsaha tamalsaha added this to the 0.13.0 milestone Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.