redis-cluster

by joaquinito2051

Helm chartv8.2.7App 7.0.5

Redis(R) is an open source, scalable, distributed in-memory cache for applications. It can be used to store and serve data in the form of strings, hashes, lists, sets and sorted sets.

About this chart

Bitnami package for Redis(R) Cluster

Redis(R) is an open source, scalable, distributed in-memory cache for applications. It can be used to store and serve data in the form of strings, hashes, lists, sets and sorted sets.

Overview of Redis® Cluster

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.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/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.

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.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-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 my-repo/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""
clusterDomainKubernetes Cluster Domaincluster.local
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"]
image.registryRedis® cluster image registrydocker.io
image.repositoryRedis® cluster image repositorybitnami/redis-cluster
image.tagRedis® cluster image tag (immutable tags are recommended)7.0.5-debian-11-r9
image.digestRedis® cluster image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
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""
serviceAccount.annotationsAnnotations for Cassandra Service Account{}
serviceAccount.automountServiceAccountTokenAutomount API credentials for a service account.false
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
containerSecurityContext.runAsNonRootRun container as non roottrue
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""

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 v8.2.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