<p>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.</p>

M K
<p>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:</p>
<p><a href="https://github.com/bitnami/charts/tree/master/bitnami/redis-cluster" rel="nofollow noreferrer">https://github.com/bitnami/charts/tree/master/bitnami/redis-cluster</a></p>
