redis

by KubeGems

Helm chartv12.8.3App 6.0.12

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

RedisTM Chart packaged by Bitnami

RedisTM 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

Introduction

This chart bootstraps a RedisTM 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 RedisTM Helm Chart and RedisTM Cluster Helm Chart

You can choose any of the two RedisTM Helm charts for deploying a RedisTM cluster. While RedisTM Helm Chart will deploy a master-slave cluster using RedisTM Sentinel, the RedisTM Cluster Helm Chart will deploy a RedisTM Cluster topology with sharding. The main features of each chart are the following:

RedisTMRedisTM 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

The command deploys RedisTM 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

The following table lists the configurable parameters of the RedisTM chart and their default values.

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
global.storageClassGlobal storage class for dynamic provisioningnil
global.redis.passwordRedisTM password (overrides password)nil
image.registryRedisTM Image registrydocker.io
image.repositoryRedisTM Image namebitnami/redis
image.tagRedisTM Image tag{TAG_NAME}
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an arraynil
nameOverrideString to partially override redis.fullname template with a string (will prepend the release name)nil
fullnameOverrideString to fully override redis.fullname template with a stringnil
cluster.enabledUse master-slave topologytrue
cluster.slaveCountNumber of slaves2
existingSecretName of existing secret object (for password authentication)nil
existingSecretPasswordKeyName of key containing password to be retrieved from the existing secretnil
usePasswordUse passwordtrue
usePasswordFileMount passwords as files instead of environment variablesfalse
passwordRedisTM password (ignored if existingSecret set)Randomly generated
configmapAdditional common RedisTM node configuration (this value is evaluated as a template)See values.yaml
clusterDomainKubernetes DNS Domain name to usecluster.local
networkPolicy.enabledEnable NetworkPolicyfalse
networkPolicy.allowExternalDon't require client label for connectionstrue
networkPolicy.ingressNSMatchLabelsAllow connections from other namespaces{}
networkPolicy.ingressNSPodMatchLabelsFor other namespaces match by pod labels and namespace labels{}
securityContext.*Other pod security context to be included as-is in the pod spec{}
securityContext.enabledEnable security context (both redis master and slave pods)true
securityContext.fsGroupGroup ID for the container (both redis master and slave pods)1001
containerSecurityContext.*Other container security context to be included as-is in the container spec{}
containerSecurityContext.enabledEnable security context (both redis master and slave containers)true
containerSecurityContext.runAsUserUser ID for the container (both redis master and slave containers)1001
serviceAccount.createSpecifies whether a ServiceAccount should be createdfalse
serviceAccount.nameThe name of the ServiceAccount to createGenerated using the fullname template
serviceAccount.annotationsSpecifies annotations to add to ServiceAccount.nil
rbac.createSpecifies whether RBAC resources should be createdfalse
rbac.role.rulesRules to create[]
metrics.enabledStart a side-car prometheus exporterfalse
metrics.image.registryRedisTM exporter image registrydocker.io
metrics.image.repositoryRedisTM exporter image namebitnami/redis-exporter
metrics.image.tagRedisTM exporter image tag

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 v12.8.3 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