redis-cluster

by [riftbit]

Helm chartv6.3.7App 6.2.5Verified publisher

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

Redis™ Cluster Chart packaged by Bitnami

Redis™ is an advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs.

Disclaimer: REDIS® is a registered trademark of Redis Labs Ltd.Any rights therein are reserved to Redis Labs Ltd. Any use by Bitnami is for referential purposes only and does not indicate any sponsorship, endorsement, or affiliation between Redis Labs Ltd.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/redis-cluster

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. This chart has been tested to work with NGINX Ingress, cert-manager, fluentd and Prometheus on top of the BKPR.

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. While Redis™ Helm Chart will deploy a master-slave cluster using Redis™ Sentinel, the Redis™ Cluster Helm Chart will deploy a Redis™ Cluster 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.12+
  • Helm 3.1.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 bitnami/redis-cluster

The command deploys Redis™ on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

NOTE: if you get a timeout error waiting for the hook to complete increase the default timeout (300s) to a higher one, for example:

helm install --timeout 600s myrelease bitnami/redis-cluster

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.passwordRedis™ password (overrides password)""

Redis™ Cluster Common parameters

NameDescriptionValue
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname template""
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release (evaluated as a template)[]
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™ Cluster Common parameters

NameDescriptionValue
image.registryRedis™ cluster image registrydocker.io
image.repositoryRedis™ cluster image repositorybitnami/redis-cluster
image.tagRedis™ cluster image tag (immutable tags are recommended)6.2.5-debian-10-r61
image.pullPolicyRedis™ cluster image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugEnable image debug modefalse
networkPolicy.enabledEnable NetworkPolicyfalse
networkPolicy.allowExternalThe Policy model to apply. Don't require client label for connectionstrue
networkPolicy.ingressNSMatchLabelsAllow connections from other namespacess. Just set label for namespace and set label for pods (optional).{}
networkPolicy.ingressNSPodMatchLabelsFor other namespaces match by pod labels and namespace labels{}
serviceAccount.createSpecifies whether a ServiceAccount should be createdfalse
serviceAccount.nameThe name of the ServiceAccount to create""
rbac.createSpecifies whether RBAC resources should be createdfalse
rbac.role.rulesRules to create. It follows the role specification[]
podSecurityContext.enabledEnable Redis™ pod Security Contexttrue
podSecurityContext.fsGroupGroup ID for the pods1001
podSecurityContext.runAsUserUser ID for the pods1001
podSecurityContext.sysctlsSet namespaced sysctls for the pods[]
podDisruptionBudgetLimits the number of pods of the replicated application that are down simultaneously from voluntary disruptions{}
minAvailableMin number of pods that must still be available after the eviction""
maxUnavailableMax number of pods that can be unavailable after the eviction""
containerSecurityContext.enabledEnable Containers' Security Contexttrue
containerSecurityContext.runAsUserUser ID for the containers.1001
usePasswordUse password authenticationtrue
passwordRedis™ password (ignored if existingSecret set)""
existingSecretName of existing secret object (for password authentication)""
existingSecretPasswordKeyName of key containing password to be retrieved from the existing secret""
usePasswordFileMount passwords as files instead of environment variablesfalse
tls.enabledEnable TLS support for replication trafficfalse
tls.authClientsRequire clients to authenticate or nottrue
tls.autoGeneratedGenerate automatically self-signed TLS certificatesfalse
tls.existingSecretThe name of the existing secret that contains the TLS certificates""
tls.certificatesSecretDEPRECATED. Use tls.existingSecret instead""
tls.certFilenameCertificate filename""
tls.certKeyFilenameCertificate key filename""
tls.certCAFilenameCA Certificate filename""
tls.dhParamsFilenameFile containing DH params (in order to support DH based ciphers)""
service.portKubernetes Service port

Deploy redis-cluster with OpenTenant

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