redis-cluster
by [riftbit]
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 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-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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
global.redis.password | Redis™ password (overrides password) | "" |
Redis™ Cluster Common parameters
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override common.names.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override common.names.fullname template | "" |
commonAnnotations | Annotations to add to all deployed objects | {} |
commonLabels | Labels to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release (evaluated as a template) | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
Redis™ Cluster Common parameters
| Name | Description | Value |
|---|---|---|
image.registry | Redis™ cluster image registry | docker.io |
image.repository | Redis™ cluster image repository | bitnami/redis-cluster |
image.tag | Redis™ cluster image tag (immutable tags are recommended) | 6.2.5-debian-10-r61 |
image.pullPolicy | Redis™ cluster image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Enable image debug mode | false |
networkPolicy.enabled | Enable NetworkPolicy | false |
networkPolicy.allowExternal | The Policy model to apply. Don't require client label for connections | true |
networkPolicy.ingressNSMatchLabels | Allow connections from other namespacess. Just set label for namespace and set label for pods (optional). | {} |
networkPolicy.ingressNSPodMatchLabels | For other namespaces match by pod labels and namespace labels | {} |
serviceAccount.create | Specifies whether a ServiceAccount should be created | false |
serviceAccount.name | The name of the ServiceAccount to create | "" |
rbac.create | Specifies whether RBAC resources should be created | false |
rbac.role.rules | Rules to create. It follows the role specification | [] |
podSecurityContext.enabled | Enable Redis™ pod Security Context | true |
podSecurityContext.fsGroup | Group ID for the pods | 1001 |
podSecurityContext.runAsUser | User ID for the pods | 1001 |
podSecurityContext.sysctls | Set namespaced sysctls for the pods | [] |
podDisruptionBudget | Limits the number of pods of the replicated application that are down simultaneously from voluntary disruptions | {} |
minAvailable | Min number of pods that must still be available after the eviction | "" |
maxUnavailable | Max number of pods that can be unavailable after the eviction | "" |
containerSecurityContext.enabled | Enable Containers' Security Context | true |
containerSecurityContext.runAsUser | User ID for the containers. | 1001 |
usePassword | Use password authentication | true |
password | Redis™ password (ignored if existingSecret set) | "" |
existingSecret | Name of existing secret object (for password authentication) | "" |
existingSecretPasswordKey | Name of key containing password to be retrieved from the existing secret | "" |
usePasswordFile | Mount passwords as files instead of environment variables | false |
tls.enabled | Enable TLS support for replication traffic | false |
tls.authClients | Require clients to authenticate or not | true |
tls.autoGenerated | Generate automatically self-signed TLS certificates | false |
tls.existingSecret | The name of the existing secret that contains the TLS certificates | "" |
tls.certificatesSecret | DEPRECATED. Use tls.existingSecret instead | "" |
tls.certFilename | Certificate filename | "" |
tls.certKeyFilename | Certificate key filename | "" |
tls.certCAFilename | CA Certificate filename | "" |
tls.dhParamsFilename | File containing DH params (in order to support DH based ciphers) | "" |
service.port | Kubernetes 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartredis-cluster is pinned at v6.3.7 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