> For the complete documentation index, see [llms.txt](https://docs.opstreelabs.in/redis-operator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opstreelabs.in/redis-operator/setup/cluster.md).

# Cluster

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.

### Helm

```bash
# Create redis cluster setup
helm upgrade redis-cluster ./helm/redis-setup \
  -f ./helm/redis-setup/cluster-values.yaml \
  --set setupMode="cluster" --set cluster.size=3 \
  --install --namespace redis-operator
```

### Kubectl

```bash
# Standalone redis deployment
kubectl apply -f example/redis-cluster-example.yaml
```
