redis-operator icon indicating copy to clipboard operation
redis-operator copied to clipboard

How to enable Cluster mode in Open Shift redis operator

Open msanthosh491 opened this issue 2 years ago • 2 comments

Describe your question

We are trying to setup Redis Cluster in OpenShift Platform with redis operator ( v0.15.1), but we are facing issue with Cluster roles ( manually updated the ClusterRole resources but if Operator restarts again Cluster roles are updating with old Roles.

Cluster pods are starting with standalone mode, how to enable cluster mode ? tried with adding external configuration with cluster-enabled yes but it not reflecting. Please help on this

What version of redis-operator are you using?

redis-operator version: v0.15.1

Additional context

When we can expect these fixes in Operator ?

I am not able to add logs here as my organization blocked GitHub access from office network.

msanthosh491 avatar Nov 24 '23 08:11 msanthosh491

+1

uDuCkV avatar Nov 27 '23 17:11 uDuCkV

Hello @msanthosh491, I have had the same experience. The redis-operator serviceaccount does not have sufficient permissions (ClusterRole) to run the redis-operator deployment. In our case, I have created a custom ClusterRole and ClusterRoleBinding which binds to the redis-operator serviceaccount. I suppose this will not be overwritten when the operator updates. I won't recommend editing the default ClusterRole defined by the operator.

osca-mwongera avatar May 08 '24 11:05 osca-mwongera