When deploying a Redis cluster, we often need to include a proxy component. However, most Redis charts do not come with a proxy component. To address this, I created a Helm chart using Predixy as the proxy.
- Developed a Predixy Helm chart.
- Combined the Predixy chart with the redis 20.6.1 · bitnami/bitnami into a unified chart.
- This combination allows deploying both Predixy and Redis Cluster via a single
helm install
command. After deployment, the architecture looks as follows:
- Create a
**value.yaml**
file
Configure the storageClass
and passwords for both the Redis cluster and Predixy. Ensure they are set independently:
global:
redis:
password: ""
predixy:
clusterServerPool:
password: ""
storageClass: ""
- Install the Chart
Use the following command to install Predixy:
helm -n redis-cluster install predixy predixy -f value.yaml
- Modify the
**value.yaml**
file
When deploying both components together, include the fullnameOverride
field to prevent naming conflicts. Both subcharts use the release name to generate container names and other values. Without overriding this, deployment may lead to naming issues.
global:
redis:
password: ""
predixy:
clusterServerPool:
password: ""
storageClass: ""
redis-cluster:
fullnameOverride: ""
predixy:
fullnameOverride: ""
clusterFullNameOverride: ""#Consistent with redis-cluster.fullnameOverride
- Install the Chart
Deploy both Predixy and Redis Cluster together using:
helm -n redis-cluster install redis-cluster-predixy ./redis-cluster-predixy
- Duplicate Dependencies:
Both the Predixy and Redis Cluster charts use a sharedcommon
chart. Currently, each includes its own copy. This should be refactored to share a single instance of thecommon
chart. - Startup Sequencing:
When deploying together, Predixy should wait for the Redis Cluster to be fully initialized before starting. - Incomplete Files:
Some files, such asNOTES.txt
and configurations for ingress, are missing and need to be completed. - Prometheus Integration:
The Redis Cluster chart supports Prometheus integration, but this has not yet been added to Predixy.
Subsequent supplements