Skip to main content
helm chart · redisdistributed

Redis Distributed

Helm chart deploys redis distributed instance

Latest version
v0.0.10
Chart type
Data source
Requires
Helm 3+

Install

Add the zop.dev chart repository, then install redisdistributed into your cluster.

helm repo add zopdev https://helm.zop.dev
helm repo update
helm install my-redisdistributed zopdev/redisdistributed --version v0.0.10

This Helm chart deploys a Distributed Redis cluster on Kubernetes with master-slave replication, high availability, and monitoring capabilities. Below is a detailed guide to the configuration options available.


Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+
  • Prometheus Operator (for monitoring and alerts)

Add Helm Repository

Add the Helm repository by running:

Terminal window
helm repo add zopdev https://helm.zop.dev
helm repo update

For more details, see the Helm Repository Documentation.


Install Helm Chart

To deploy the Redis Distributed Helm chart, use the following command:

Terminal window
helm install [RELEASE_NAME] zopdev/redisdistributed

Replace [RELEASE_NAME] with your desired release name. Example:

Terminal window
helm install my-redis-distributed zopdev/redisdistributed

You can override default values during installation by providing a values.yaml file.

Refer to the Helm Install Documentation for further details.


Uninstall Helm Chart

To remove the Redis Distributed Helm chart and associated resources, run:

Terminal window
helm uninstall [RELEASE_NAME]

Example:

Terminal window
helm uninstall my-redis-distributed

Check the Helm Uninstall Documentation for more information.


Configuration

The table below outlines the essential global configuration options. For specific master and slave configurations, refer to their respective sections below.

Global Configuration

InputTypeDescriptionDefault
image.registryStringDocker registry for the Redis image.docker.io
image.repositoryStringRepository for the Redis image.redis
image.tagStringRedis image tag.6.2.13
image.pullPolicyStringImage pull policy.IfNotPresent

Master Configuration

InputTypeDescriptionDefault
master.resources.requests.cpuStringCPU request for the Redis master."100m"
master.resources.requests.memoryStringMemory request for the Redis master."500Mi"
master.resources.limits.cpuStringCPU limit for the Redis master."500m"
master.resources.limits.memoryStringMemory limit for the Redis master."1000Mi"
master.persistence.sizeStringPersistent storage size for the master."10Gi"
master.livenessProbe.enabledBoolEnable liveness probe for the master.true
master.livenessProbe.initialDelaySecondsIntInitial delay for the master liveness probe.30
master.readinessProbe.enabledBoolEnable readiness probe for the master.true
master.readinessProbe.initialDelaySecondsIntInitial delay for the master readiness probe.10
master.service.typeStringService type for the master pod.ClusterIP
master.service.portIntPort exposed by the master service.6379

Slave Configuration

InputTypeDescriptionDefault
slave.enableBoolEnable slave deployment.true
slave.countIntNumber of Redis slave replicas.1
slave.resources.requests.cpuStringCPU request for Redis slave pods."100m"
slave.resources.requests.memoryStringMemory request for Redis slave pods."500Mi"
slave.resources.limits.cpuStringCPU limit for Redis slave pods."500m"
slave.resources.limits.memoryStringMemory limit for Redis slave pods."1000Mi"
slave.persistence.sizeStringPersistent storage size for slaves."10Gi"
slave.livenessProbe.enabledBoolEnable liveness probe for the slave pods.true
slave.livenessProbe.initialDelaySecondsIntInitial delay for slave liveness probe.30
slave.readinessProbe.enabledBoolEnable readiness probe for the slave pods.true
slave.readinessProbe.initialDelaySecondsIntInitial delay for slave readiness probe.10
slave.service.typeStringService type for slave pods.ClusterIP
slave.service.portIntPort exposed by the slave service.6379

Example values.yaml

Terminal window
version: "6.2.13"
master:
resources:
requests:
cpu: "100m"
memory: "500Mi"
limits:
cpu: "500m"
memory: "1000Mi"
persistence:
size: 10Gi
slave:
enable : true
count: 1
resources:
requests:
cpu: "100m"
memory: "500Mi"
limits:
cpu: "500m"
memory: "1000Mi"
persistence:
size: 10Gi

Features

  • Deploy Redis master-slave architecture with high availability on Kubernetes.
  • Configurable master and slave resources, persistence, and scaling options.
  • Built-in health monitoring with liveness and readiness probes.
  • Automatic failover and replication management for data reliability.
  • Comprehensive monitoring with Redis Exporter and Prometheus integration.
  • Customizable service types and ports for flexible networking.
  • Rolling updates with zero downtime for seamless deployments.
  • Persistent storage for both master and slave nodes.

Monitoring

The chart includes a Redis Exporter container that exposes metrics on port 2121. These metrics are automatically collected by Prometheus when using the Prometheus Operator.

Key metrics include:

  • Redis instance information
  • Connected slaves count
  • Memory usage
  • Command statistics
  • Replication status
  • Connection metrics

Pod Scheduling

nodeSelector, tolerations and affinity are passed straight through to the pod spec. All three are empty by default and render nothing, so leaving them unset changes nothing for an existing release.

They apply to both the master and the slave StatefulSet.

Together they place the workload on a dedicated node pool — the nodeSelector picks the pool, the toleration gets past its taint:

Terminal window
nodeSelector:
workload: stateful
tolerations:
- key: workload
operator: Equal
value: stateful
effect: NoSchedule

affinity takes a full Affinity object and is rendered verbatim.


Contributing

We welcome contributions to improve this Helm chart. Please refer to the CONTRIBUTING.md file for contribution guidelines.


Code of Conduct

To maintain a healthy and collaborative community, please adhere to our Code of Conduct.


License

This project is licensed under the LICENSE. Please review it for terms of use.


Connection Config

  • REDIS_PORT : Port on which Redis is exposed inside the cluster.Default 6379.
  • REDIS_HOST : Internal DNS name for the Redis headless service.
  • REDIS_URL : Redis connection string.

See it fire on your bill.

Connect an account read-only. The first findings land in minutes.

472 rule families across 353 resource types on 22 platforms. Every threshold, metric, and IAM action is documented on these pages before you grant anything.

472 rule families documented
353 resource types covered
read-only default access level
Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console· Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console·