redis

by magefleet

Helm chartv0.1.0App 7.2Apache-2.0

A Helm chart for Redis 7.2 with persistence and configurable memory policies

About this chart

Redis Helm Chart

A Helm chart for deploying Redis 7.2 on Kubernetes.

Installation

helm install my-redis ./redis-chart

Configuration

The following table lists the configurable parameters of the Redis chart and their default values.

ParameterDescriptionDefault
replicaCountNumber of Redis replicas1
image.repositoryRedis image repositoryredis
image.tagRedis image tag7.2
image.pullPolicyImage pull policyIfNotPresent
service.typeKubernetes service typeClusterIP
service.portRedis service port6379
redis.passwordRedis password (empty = no auth)""
redis.maxmemoryMax memory limit256mb
redis.maxmemoryPolicyEviction policyallkeys-lru
persistence.enabledEnable persistent storagetrue
persistence.storageClassStorage class name""
persistence.accessModePVC access modeReadWriteOnce
persistence.sizePVC size8Gi
resources.limits.cpuCPU limit500m
resources.limits.memoryMemory limit512Mi
resources.requests.cpuCPU request250m
resources.requests.memoryMemory request256Mi

Examples

Install with custom password

helm install my-redis ./redis-chart --set redis.password=mypassword

Install without persistence

helm install my-redis ./redis-chart --set persistence.enabled=false

Install with custom memory settings

helm install my-redis ./redis-chart \
  --set redis.maxmemory=512mb \
  --set redis.maxmemoryPolicy=allkeys-lfu

Deploy redis with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has redis 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 is pinned at v0.1.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