I want to create a master + slave Redis cluster. Tables will be prefixed for each environment. Any piece of codes that supports the above feature would be helpful.
I want to create a master + slave Redis cluster. Tables will be prefixed for each environment. Any piece of codes that supports the above feature would be helpful.
2
Answers
More complicated K8s deployments are best done with Helm, since they are easily (and highly configurable). This is the location of a well maintained open-source helm chart for redis cluster:
https://github.com/bitnami/charts/tree/master/bitnami/redis-cluster
Here is how you can setup Redis HA Master Slave Cluster in Kubernetes/Openshift OKD, without using Helm
Basically you have to use configMap, StatefulSet in collaboration with VolumeClaims