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.
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of Redis replicas | 1 |
image.repository | Redis image repository | redis |
image.tag | Redis image tag | 7.2 |
image.pullPolicy | Image pull policy | IfNotPresent |
service.type | Kubernetes service type | ClusterIP |
service.port | Redis service port | 6379 |
redis.password | Redis password (empty = no auth) | "" |
redis.maxmemory | Max memory limit | 256mb |
redis.maxmemoryPolicy | Eviction policy | allkeys-lru |
persistence.enabled | Enable persistent storage | true |
persistence.storageClass | Storage class name | "" |
persistence.accessMode | PVC access mode | ReadWriteOnce |
persistence.size | PVC size | 8Gi |
resources.limits.cpu | CPU limit | 500m |
resources.limits.memory | Memory limit | 512Mi |
resources.requests.cpu | CPU request | 250m |
resources.requests.memory | Memory request | 256Mi |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartredis is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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