redis-sharded

by Helm

Helm chartv0.5.0App 8.10.1

A Helm chart for sharded redis

About this chart

Redis Sharded Helm chart

Helm chart for using redis shards. It is loosely based on Bitnami Redis Chart and uses twemproxy.

Why Redis Sharded?

Redis Sharded offers an easy way to use Redis with multiple independent master instances as shards, and optionally a twemproxy in front, so that the client can see it as a single redis instance.

Quick Start

helm repo add softonic https://charts.softonic.io
helm install redis-sharded softonic/redis-sharded

Redis version

The Redis image tag defaults to the chart's appVersion, so bumping the chart moves Redis with it. Pin a specific version with image.tag when you need to stay put:

image:
  tag: 8.10.1

Upgrading

Chart 0.5.0 moves the default from Redis 6.2 to Redis 8.10. If your release has persistence.enabled: true, read this before upgrading.

Redis reads older on-disk data and converts it forward: a legacy single-file AOF is rewritten into the multi-part layout on first start, and any older RDB is loaded normally. Going backwards does not work — Redis refuses to load an RDB written by a newer version (Can't handle RDB format version), and Redis 6 cannot read a multi-part AOF directory at all.

The RDB format version by release:

RedisRDB version
6.0 / 6.29
7.0 / 7.210 / 11
8.0 / 8.2 / 8.412
8.613
8.814
8.1015

Note this applies within Redis 8 too — rolling 8.10 back to 8.0 fails the same way. So rolling the chart version back is not a recovery path once the data has been written.

If the release holds anything you cannot rebuild from another source, take a dump before upgrading. For a pure cache, no action is needed beyond expecting a cold start.

Each instance is a single pod with no replica, so an upgrade is a short outage for that shard rather than a failover. Stagger the rollout if you run several.

Deploy redis-sharded with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has redis-sharded on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartredis-sharded is pinned at v0.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply