redis-enterprise-operator
by Redis Inc
A Helm chart for Redis Enterprise Operator for Kubernetes
About this chart
Redis Enterprise for Kubernetes Helm Chart
Official Helm chart for installing, configuring and upgrading Redis Enterprise for Kubernetes.
Redis Enterprise is a self-managed data platform that unlocks the full potential of Redis at enterprise scale - on premises or in the cloud. Redis Enterprise for Kubernetes provides a simple, Kubernetes-native way for deploying and managing Redis Enterprise.
Prerequisites
- A supported distribution of Kubernetes version 1.28 or later.
- At least three worker nodes.
- Kubernetes client (kubectl).
- Helm 3.10 or later or 3.18 for migrating from a non-Helm installation.
If your file descriptor limits are below 100,000, either manually increase them or Allow automatic resource adjustment. Most cloud providers set adequate defaults.
Example values
The steps below use the following placeholders to indicate command line parameters you must provide:
<repo-name>is the name of the repo holding your Helm chart (example:redis).<release-name>is the name you give a specific installation of the Helm chart (example:my-redis-enterprise-operator)<chart-version>is the version of the Helm chart you are installing (example:7.8.2-2)<namespace-name>is the name of the new namespace the Redis operator will run in (example:ns1)<path-to-chart>is the filepath to the Helm chart, if it is stored in a local directory (example:/home/charts/redis-enterprise-operator)
Install
- Add the Redis repository.
helm repo add <repo-name> https://helm.redis.io/
- Install the Helm chart into a new namespace.
helm install <release-name> <repo-name>/redis-enterprise-operator \
--version <chart-version> \
--namespace <namespace-name> \
--create-namespace
To install with Openshift, add --set openshift.mode=true.
To monitor the installation add the --debug flag. The installation runs several jobs synchronously and may take a few minutes to complete.
Install from local directory
-
Find the latest release on the redis-enterprise-k8s-docs repo and download the
tar.gzsource code into a local directory. -
Install the Helm chart from your local directory.
helm install <release-name> <path-to-chart> \
--namespace <namespace-name> \
--create-namespace
To install with Openshift, add --set openshift.mode=true.
To monitor the installation add the --debug flag. The installation runs several jobs synchronously and may take a few minutes to complete.
Specify values during install
-
View configurable values with
helm show values <repo-name>/redis-enterprise-operator. -
Install the Helm chart, overriding specific value defaults using
--set.
helm install <operator-name> <repo-name>/redis-enterprise-operator \
--version <chart-version> \
--namespace <namespace-name> \
--create-namespace \
--set <key1>=<value1> \
--set <key2>=<value2>
Install with values file
-
View configurable values with
helm show values <repo-name>/redis-enterprise-operator. -
Create a YAML file to specify the values you want to configure.
-
Install the chart with the
--valuesoption.
helm install <operator-name> <repo-name>/redis-enterprise-operator \
--version <chart-version> \
--namespace <namespace-name> \
--create-namespace \
--values <path-to-values-file>
Migrate from a non-Helm installation
To migrate an existing non-Helm installation of the Redis Enterprise operator to a Helm-based installation:
-
Upgrade your existing Redis Enterprise operator to match the version of the Helm chart you want to install. Use the same non-Helm method you used for the original installation.
-
Install the Helm chart adding the
--take-ownershipflag:helm install <release-name> <repo-name>/redis-enterprise-operator --take-ownership- The
--take-ownershipflag is available with Helm versions 3.18 or later. - This flag is only needed for the first installation of the chart. Subsequent upgrades don't require this flag.
- Use the
helm installcommand, nothelm upgrade.
- The
-
Delete the old
ValidatingWebhookConfigurationobject from the previous non-Helm installation:kubectl delete validatingwebhookconfiguration redis-enterprise-admissionThis step is only needed when the
admission.limitToNamespacechart value is set totrue(the default). In this case, the webhook object installed by the chart is namedredis-enterprise-admission-<namespace>, and the original webhook object, namedredis-enterprise-admission, becomes redundant. Ifadmission.limitToNamespaceis set tofalse, the webhook installed by the chart is namedredis-enterprise-admission, and the existing webhook object is reused.
Upgrade the chart
To upgrade an existing Helm chart installation:
helm upgrade <release-name> <repo-name>/redis-enterprise-operator --version <chart-version>
You can also upgrade from a local directory:
helm upgrade <release-name> <path-to-chart>
For example, to upgrade a chart with the release name my-redis-enterprise from the chart's root directory:
helm upgrade my-redis-enterprise .
To upgrade with OpenShift, add --set openshift.mode=true.
The upgrade process automatically updates the operator and its components, including the Custom Resource Definitions (CRDs). The CRDs are versioned and update only if the new version is higher than the existing version.
After you upgrade the operator, you might need to upgrade your Redis Enterprise clusters, depending on the Redis software version bundled with the operator. For detailed information about the upgrade process, see Redis Enterprise for Kubernetes upgrade documentation.
For more information and options when upgrading charts, see helm upgrade.
Create Redis Enterprise Cluster during installation
The chart can optionally create a Redis Enterprise Cluster (REC) as part of the installation:
helm install <release-name> <repo-name>/redis-enterprise-operator \
--version <chart-version> \
--namespace <namespace-name> \
--create-namespace \
--set cluster.create=true \
--set cluster.spec.nodes=3
Or using a values file:
cluster:
create: true
spec:
nodes: 3
persistentSpec:
enabled: true
volumeSize: "20Gi"
For detailed information about cluster creation, configuration options, and upgrade behavior, see the Redis Enterprise for Kubernetes documentation.
Uninstall
Before uninstalling, delete any custom resources managed by the operator:
# If cluster was created by the chart, delete dependent resources first
kubectl delete redb,reaadb,rerc --all -n <namespace-name>
# Then uninstall the chart
helm uninstall <release-name>
If you created the REC manually (not through the chart), see Delete custom resources for detailed steps.
Note: Custom Resource Definitions (CRDs) installed by the chart are not removed during chart uninstallation. To remove them manually after uninstalling the chart, run
kubectl delete crds -l app=redis-enterprise.
Known limitations
- The chart can optionally create a Redis Enterprise Cluster (see
cluster.createoption), but this feature is disabled by default and primarily intended for new deployments. - The chart doesn't include configuration options for multiple namespaces and rack-awareness. The steps for configuring these options remain the same.
- The chart has had limited testing in advanced setups, including Active-Active configurations, air-gapped deployments, and IPv6/dual-stack environments.
Deploy redis-enterprise-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has redis-enterprise-operator 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-enterprise-operator is pinned at v8.2.6-26 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