Skip to content
lorebow

Step 4 of 9, about 4 min

Install Redis

Install the mode you chose, with Helm or with plain YAML.

#Remove an earlier install

If another mode from this guide is already installed, remove it and its data first:

bash
helm -n redis uninstall redis
kubectl -n redis delete pvc --all

If you installed it from a YAML file, use kubectl delete -f with that file in place of the first line.

#Install your mode

Bitnami's chart runs one primary StatefulSet (redis-master) and one replica StatefulSet (redis-replicas).

replication-values.yamlyaml
architecture: replication
auth:
  existingSecret: redis-auth
  existingSecretPasswordKey: password
global:
  defaultStorageClass: redis-storage
master:
  persistence:
    size: 2Gi
replica:
  replicaCount: 2
  persistence:
    size: 2Gi
sentinel:
  enabled: false
bash
helm install redis oci://registry-1.docker.io/bitnamicharts/redis --version 28.3.12 \
  --namespace redis -f replication-values.yaml

Pods: redis-master-0, redis-replicas-0, redis-replicas-1. Apps connect to the Service redis-master for writes and redis-replicas for reads.