For setting up the redis cluster we can use helm
and kubectl
. The only thing which needs to be taken care of is that the minimum count for cluster is 3.
# Create redis cluster setuphelm upgrade redis-cluster ./helm/redis-setup \-f ./helm/redis-setup/cluster-values.yaml \--set setupMode="cluster" --set cluster.size=3 \--install --namespace redis-operator
# Standalone redis deploymentkubectl apply -f example/redis-cluster-example.yaml