redis-extra
Collection of extra Kubernetes objects for a Redis instance
About this chart
Redis Extra
Redis Extra are a collection of extra Kubernetes objects for a Redis instance.
DISCLAIMER: This is an unofficial chart not supported by Redis authors.
TL;DR;
$ helm repo add cowboysysop https://cowboysysop.github.io/charts/
$ helm install my-release cowboysysop/redis-extra
or for an OCI-based registry:
$ helm install my-release oci://ghcr.io/cowboysysop/charts/redis-extra
Introduction
This chart bootstraps a Redis Extra deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes >= 1.24
- Helm >= 3.9
Installing
Install the chart using:
$ helm repo add cowboysysop https://cowboysysop.github.io/charts/
$ helm install my-release cowboysysop/redis-extra
or for an OCI-based registry:
$ helm install my-release oci://ghcr.io/cowboysysop/charts/redis-extra
These commands deploy Redis Extra on the Kubernetes cluster in the default configuration and with the release name my-release. The deployment configuration can be customized by specifying the customization parameters with the helm install command using the --values or --set arguments. Find more information in the configuration section of this document.
Upgrading
Upgrade the chart deployment using:
$ helm upgrade my-release cowboysysop/redis-extra
or for an OCI-based registry:
$ helm upgrade my-release oci://ghcr.io/cowboysysop/charts/redis-extra
The command upgrades the existing my-release deployment with the most latest release of the chart.
Upgrading to version 2.0.0
The chart now uses forked versions of the Bitnami charts to reference the Bitnami Legacy repository:
- https://github.com/bitnami/containers/issues/83267
Uninstalling
Uninstall the my-release deployment using:
$ helm uninstall my-release
The command deletes the release named my-release and frees all the kubernetes resources associated with the release.
TIP: Specify the --purge argument to the above command to remove the release from the store and make its name free for later use.
Configuration
Common parameters
| Name | Description | Default |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | Partially override redis-extra.fullname template with a string (will prepend the release name) | "" |
fullnameOverride | Fully override redis-extra.fullname template with a string | "" |
namespaceOverride | Fully override common.names.namespace template with a string | "" |
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 | [] |
Velero backups parameters
| Name | Description | Default |
|---|---|---|
veleroBackups.enabled | Specifies whether Velero backups should be created | false |
veleroBackups.namespace | Namespace in which to create the Velero backups | velero |
veleroBackups.annotations | Velero backup annotations | {} |
veleroBackups.backupLocation | Backup storage location | "" |
veleroBackups.snapshotLocation | Volume snapshot location | "" |
veleroBackups.hourly.enabled | Enable hourly backups | false |
veleroBackups.hourly.minute | Minute for hourly backups | 0 |
veleroBackups.hourly.retention | Number of hours after which hourly backups expire | 24 |
veleroBackups.daily.enabled | Enable daily backups | true |
veleroBackups.daily.hour | Hour for daily backups | 0 |
veleroBackups.daily.minute | Minute for daily backups | 0 |
veleroBackups.daily.retention | Number of days after which daily backups expire | 7 |
veleroBackups.weekly.enabled | Enable weekly backups | true |
veleroBackups.weekly.day | Day of week for weekly backups | 0 |
veleroBackups.weekly.hour | Hour for weekly backups | 0 |
veleroBackups.weekly.minute | Minute for weekly backups | 0 |
veleroBackups.weekly.retention | Number of weeks after which weekly backups expire | 5 |
veleroBackups.monthly.enabled | Enable monthly backups | true |
veleroBackups.monthly.day | Day of month for monthly backups | 1 |
veleroBackups.monthly.hour | Hour for monthly backups | 0 |
veleroBackups.monthly.minute | Minute for monthly backups | 0 |
veleroBackups.monthly.retention | Number of months after which monthly backups expire | 12 |
veleroBackups.yearly.enabled | Enable yearly backups | false |
veleroBackups.yearly.month | Month for yearly backups | 1 |
veleroBackups.yearly.day | Day of month for yearly backups | 1 |
veleroBackups.yearly.hour | Hour for yearly backups | 0 |
veleroBackups.yearly.minute | Minute for yearly backups | 0 |
veleroBackups.yearly.retention | Number of years after which yearly backups expire | 10 |
Setting parameters
Specify the parameters you which to customize using the --set argument to the helm install command. For instance,
$ helm install my-release \
--set nameOverride=my-name cowboysysop/redis-extra
or for an OCI-based registry:
$ helm install my-release \
--set nameOverride=my-name oci://ghcr.io/cowboysysop/charts/redis-extra
The above command sets the nameOverride to my-name.
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
$ helm install my-release \
--values values.yaml cowboysysop/redis-extra
or for an OCI-based registry:
$ helm install my-release \
--values values.yaml oci://ghcr.io/cowboysysop/charts/redis-extra
TIP: You can use the default values.yaml.
License
The source code of this chart is under MIT License.
It also uses source code under Apache 2.0 License from the Bitnami repository.
Deploy redis-extra with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has redis-extra 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-extra is pinned at v2.0.0 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