redis

by cleveritcz

Helm chartv17.4.0App 7.0.7

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.

Overview of Redis®

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.

  1. Redis® Helm Chart will deploy a master-replica cluster, with the option of enabling using Redis® Sentinel.
  2. 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 databasesSupports 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

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""
global.redis.passwordGlobal Redis® password (overrides auth.password)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
secretAnnotationsAnnotations to add to secret{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

Redis® Image parameters

NameDescriptionValue
image.registryRedis® image registrydocker.io
image.repositoryRedis® image repositorybitnami/redis
image.tagRedis® image tag (immutable tags are recommended)7.0.7-debian-11-r2
image.digestRedis® image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyRedis® image pull policyIfNotPresent
image.pullSecretsRedis® image pull secrets[]
image.debugEnable image debug modefalse

Redis® common configuration parameters

NameDescriptionValue
architectureRedis® architecture. Allowed values: standalone or replicationreplication
auth.enabledEnable password authenticationtrue
auth.sentinelEnable password authentication on sentinels tootrue
auth.passwordRedis® password""
auth.existingSecretThe name of an existing secret with Redis® credentials""
auth.existingSecretPasswordKeyPassword key to be retrieved from existing secret""
auth.usePasswordFilesMount credentials as files instead of using an environment variablefalse
commonConfigurationCommon configuration to be added into the ConfigMap""
existingConfigmapThe name of an existing ConfigMap with your custom configuration for Redis® nodes""

Redis® master configuration parameters

NameDescriptionValue
master.countNumber of Redis® master instances to deploy (experimental, requires additional configuration)1
master.configurationConfiguration for Redis® master nodes""
master.disableCommandsArray with Redis® commands to disable on master nodes["FLUSHDB","FLUSHALL"]
master.commandOverride default container command (useful when using custom images)[]
master.argsOverride default container args (useful when using custom images)[]
master.preExecCmdsAdditional commands to run prior to starting Redis® master[]
master.extraFlagsArray with additional command line flags for Redis® master[]
master.extraEnvVarsArray with extra environment variables to add to Redis® master nodes[]
master.extraEnvVarsCMName of existing ConfigMap containing extra env vars for Redis® master nodes""
master.extraEnvVarsSecretName of existing Secret containing extra env vars for Redis® master nodes""
master.containerPorts.redisContainer port to open on Redis® master nodes6379
master.startupProbe.enabledEnable startupProbe on Redis® master nodesfalse
master.startupProbe.initialDelaySecondsInitial delay seconds for startupProbe20
master.startupProbe.periodSecondsPeriod seconds for startupProbe5
master.startupProbe.timeoutSecondsTimeout seconds for startupProbe5
master.startupProbe.failureThresholdFailure threshold for startupProbe5
master.startupProbe.successThresholdSuccess threshold for startupProbe1
master.livenessProbe.enabledEnable livenessProbe on Redis® master nodestrue
master.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe20
master.livenessProbe.periodSecondsPeriod seconds for livenessProbe5
master.livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
master.livenessProbe.failureThresholdFailure threshold for livenessProbe5
master.livenessProbe.successThresholdSuccess threshold for livenessProbe1
master.readinessProbe.enabledEnable readinessProbe on Redis® master nodestrue
master.readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe20
master.readinessProbe.periodSecondsPeriod seconds for readinessProbe5
master.readinessProbe.timeoutSecondsTimeout seconds for readinessProbe1
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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartredis is pinned at v17.4.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