redis
by cleveritcz
Redis(R) is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
About this chart
Bitnami package for Redis(R)
Redis(R) is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
Disclaimer: Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd. Any use by Bitnami is for referential purposes only and does not indicate any sponsorship, endorsement, or affiliation between Redis Ltd.
TL;DR
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/redis
Introduction
This chart bootstraps a Redis® deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Choose between Redis® Helm Chart and Redis® Cluster Helm Chart
You can choose any of the two Redis® Helm charts for deploying a Redis® cluster.
- Redis® Helm Chart will deploy a master-replica cluster, with the option of enabling using Redis® Sentinel.
- Redis® Cluster Helm Chart will deploy a Redis® Cluster topology with sharding.
The main features of each chart are the following:
| Redis® | Redis® Cluster |
|---|---|
| Supports multiple databases | Supports only one database. Better if you have a big dataset |
| Single write point (single master) | Multiple write points (multiple masters) |
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm install my-release my-repo/redis
The command deploys Redis® on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
global.redis.password | Global Redis® password (overrides auth.password) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
secretAnnotations | Annotations to add to secret | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
Redis® Image parameters
| Name | Description | Value |
|---|---|---|
image.registry | Redis® image registry | docker.io |
image.repository | Redis® image repository | bitnami/redis |
image.tag | Redis® image tag (immutable tags are recommended) | 7.0.7-debian-11-r2 |
image.digest | Redis® image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | Redis® image pull policy | IfNotPresent |
image.pullSecrets | Redis® image pull secrets | [] |
image.debug | Enable image debug mode | false |
Redis® common configuration parameters
| Name | Description | Value |
|---|---|---|
architecture | Redis® architecture. Allowed values: standalone or replication | replication |
auth.enabled | Enable password authentication | true |
auth.sentinel | Enable password authentication on sentinels too | true |
auth.password | Redis® password | "" |
auth.existingSecret | The name of an existing secret with Redis® credentials | "" |
auth.existingSecretPasswordKey | Password key to be retrieved from existing secret | "" |
auth.usePasswordFiles | Mount credentials as files instead of using an environment variable | false |
commonConfiguration | Common configuration to be added into the ConfigMap | "" |
existingConfigmap | The name of an existing ConfigMap with your custom configuration for Redis® nodes | "" |
Redis® master configuration parameters
| Name | Description | Value |
|---|---|---|
master.count | Number of Redis® master instances to deploy (experimental, requires additional configuration) | 1 |
master.configuration | Configuration for Redis® master nodes | "" |
master.disableCommands | Array with Redis® commands to disable on master nodes | ["FLUSHDB","FLUSHALL"] |
master.command | Override default container command (useful when using custom images) | [] |
master.args | Override default container args (useful when using custom images) | [] |
master.preExecCmds | Additional commands to run prior to starting Redis® master | [] |
master.extraFlags | Array with additional command line flags for Redis® master | [] |
master.extraEnvVars | Array with extra environment variables to add to Redis® master nodes | [] |
master.extraEnvVarsCM | Name of existing ConfigMap containing extra env vars for Redis® master nodes | "" |
master.extraEnvVarsSecret | Name of existing Secret containing extra env vars for Redis® master nodes | "" |
master.containerPorts.redis | Container port to open on Redis® master nodes | 6379 |
master.startupProbe.enabled | Enable startupProbe on Redis® master nodes | false |
master.startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 20 |
master.startupProbe.periodSeconds | Period seconds for startupProbe | 5 |
master.startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 5 |
master.startupProbe.failureThreshold | Failure threshold for startupProbe | 5 |
master.startupProbe.successThreshold | Success threshold for startupProbe | 1 |
master.livenessProbe.enabled | Enable livenessProbe on Redis® master nodes | true |
master.livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 20 |
master.livenessProbe.periodSeconds | Period seconds for livenessProbe | 5 |
master.livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
master.livenessProbe.failureThreshold | Failure threshold for livenessProbe | 5 |
master.livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
master.readinessProbe.enabled | Enable readinessProbe on Redis® master nodes | true |
master.readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 20 |
master.readinessProbe.periodSeconds | Period seconds for readinessProbe | 5 |
master.readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 1 |
master.readinessProbe.failureThreshold |
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 v17.4.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