How to do Redis slave repalication in k8s cluster? How to do Redis slave repalication in k8s cluster? kubernetes kubernetes

How to do Redis slave repalication in k8s cluster?


Redis Sentinel is often suggested for simple master-slave replication and high availability.

Unfortunately, Sentinel does not fit Kubernetes world well and it also requires a Sentinel-aware client to talk to Redis.

You could try Redis operator which can be considered a Kubernetes-native replacement for Sentinel and allows to create a Redis deployment that would resist without human intervention to most kind of failures.


Here is how you can setup Redis HA Master Slave Cluster in Kubernetes/Openshift OKD

Basically you have to use configMap, StatefulSet in collaboration with VolumeClaims

https://reachmnadeem.wordpress.com/2020/10/01/redis-ha-master-slave-cluster-up-and-running-in-openshift-okd-kubernetes/