This project contains a simple bash file(install.sh) that installs a Redis cluster with Sentinel using Helm.
All this work comes from https://bitnami.com/stack/redis which is used as the base system for Entando-Redis integration. Please have a look at their official documentation to learn more: https://docs.bitnami.com/general/infrastructure/redis/
- Helm 3
- Kubernetes >1.16
- kubectl
-
Be sure to be in the correct kubernetes context and namespace before proceeding. You can set the default context and namespace with the following command
kubectl config set-context --current --namespace=[your_target_namespace] -
Execute
. install.shto have Redis installed in your target namespace. After 60 seconds you will see the first Sentinel node's logs, with the domain names of Redis's cluster instances to pick and put as values in the entando-server-deployment manifest inside theEnvironmentsection. Put the master as first entry and one of the slaves as second argument for theREDIS_ADDRESSESenv var.
REDIS_ACTIVE: true
REDIS_ADDRESSES: redis-node-0.redis-headless.[namespace].svc.cluster.local:26379,redis-node-1.redis-headless.[namespace].svc.cluster.local:26379,redis-node-2.redis-headless.[namespace].svc.cluster.local:26379
REDIS_SESSION_ACTIVE: trueIf you need to customize the installation(storage size, memory, storageclass) you can use the values.yaml file.