OT-CONTAINER-KIT / redis-operator

A golang based redis operator that will make/oversee Redis standalone/cluster/replication/sentinel mode setup on top of the Kubernetes.
https://ot-redis-operator.netlify.app/
Apache License 2.0
738 stars 207 forks source link

How to enable Cluster mode in Open Shift redis operator #709

Open msanthosh491 opened 7 months ago

msanthosh491 commented 7 months ago

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.

uDuCkV commented 7 months ago

+1

osca-mwongera commented 1 month ago

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.