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
731 stars 206 forks source link

[Feature] Add HA mode to RedisReplication #1003

Open drivebyer opened 1 week ago

drivebyer commented 1 week ago

Is your feature request related to a problem? Please describe.

  1. For users, if we want to deploy Redis in HA mode, we need to deploy both Redis Replication and Redis Sentinel. It's hard to maintain.
  2. For developers, it's challenging to maintain the status of the two resources, such as when Redis Replication failover. We need to configure the Sentinels to monitor the actual master.

Describe the solution you'd like We can add optional values to RedisReplication, such as haMode *bool. When set to true, we need to create a sentinel for RedisReplication.

Describe alternatives you've considered

What version of redis-operator are you using?

redis-operator version:

Additional context