redis-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.
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.
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 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.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
| 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 | "" |
clusterDomain | Kubernetes Cluster Domain | cluster.local |
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"] |
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) | 7.0.5-debian-11-r9 |
image.digest | Redis® cluster image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
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 | "" |
serviceAccount.annotations | Annotations for Cassandra Service Account | {} |
serviceAccount.automountServiceAccountToken | Automount API credentials for a service account. | false |
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 |
containerSecurityContext.runAsNonRoot | Run container as non root | true |
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 | "" |
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 v8.2.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