Sharded Redis cluster in Kubernetes
This is what we are going to create here in Kubernetes,
A “redis cluster” sharded across 3 master nodes, with a replica (slave) for each master.
List of Kubernetes(K8s) Resources we need to create
1. Namespace: A namespace dedicated for “Redis” cluster and its resources.
2. ConfigMaps: Two configmaps, one with Redis cluster configuration and another for the user (Access
control List)ACL file.
3. Service: A headless service which will be used to get the cluster nodes.
4. StatefulSet: A StatefulSet with 6 replicas ( 3 masters and 3 replicas(slaves)