redis
by KubeGems
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:
| RedisTM | RedisTM 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.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.
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
global.storageClass | Global storage class for dynamic provisioning | nil |
global.redis.password | RedisTM password (overrides password) | nil |
image.registry | RedisTM Image registry | docker.io |
image.repository | RedisTM Image name | bitnami/redis |
image.tag | RedisTM Image tag | {TAG_NAME} |
image.pullPolicy | Image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | nil |
nameOverride | String to partially override redis.fullname template with a string (will prepend the release name) | nil |
fullnameOverride | String to fully override redis.fullname template with a string | nil |
cluster.enabled | Use master-slave topology | true |
cluster.slaveCount | Number of slaves | 2 |
existingSecret | Name of existing secret object (for password authentication) | nil |
existingSecretPasswordKey | Name of key containing password to be retrieved from the existing secret | nil |
usePassword | Use password | true |
usePasswordFile | Mount passwords as files instead of environment variables | false |
password | RedisTM password (ignored if existingSecret set) | Randomly generated |
configmap | Additional common RedisTM node configuration (this value is evaluated as a template) | See values.yaml |
clusterDomain | Kubernetes DNS Domain name to use | cluster.local |
networkPolicy.enabled | Enable NetworkPolicy | false |
networkPolicy.allowExternal | Don't require client label for connections | true |
networkPolicy.ingressNSMatchLabels | Allow connections from other namespaces | {} |
networkPolicy.ingressNSPodMatchLabels | For other namespaces match by pod labels and namespace labels | {} |
securityContext.* | Other pod security context to be included as-is in the pod spec | {} |
securityContext.enabled | Enable security context (both redis master and slave pods) | true |
securityContext.fsGroup | Group 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.enabled | Enable security context (both redis master and slave containers) | true |
containerSecurityContext.runAsUser | User ID for the container (both redis master and slave containers) | 1001 |
serviceAccount.create | Specifies whether a ServiceAccount should be created | false |
serviceAccount.name | The name of the ServiceAccount to create | Generated using the fullname template |
serviceAccount.annotations | Specifies annotations to add to ServiceAccount. | nil |
rbac.create | Specifies whether RBAC resources should be created | false |
rbac.role.rules | Rules to create | [] |
metrics.enabled | Start a side-car prometheus exporter | false |
metrics.image.registry | RedisTM exporter image registry | docker.io |
metrics.image.repository | RedisTM exporter image name | bitnami/redis-exporter |
metrics.image.tag | RedisTM 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartredis is pinned at v12.8.3 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