redis-extra

by sebastien-prudhomme

Helm chartv2.0.0App 1.0.0MITVerified publisher

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

NameDescriptionDefault
kubeVersionOverride Kubernetes version""
nameOverridePartially override redis-extra.fullname template with a string (will prepend the release name)""
fullnameOverrideFully override redis-extra.fullname template with a string""
namespaceOverrideFully override common.names.namespace template with a string""
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[]

Velero backups parameters

NameDescriptionDefault
veleroBackups.enabledSpecifies whether Velero backups should be createdfalse
veleroBackups.namespaceNamespace in which to create the Velero backupsvelero
veleroBackups.annotationsVelero backup annotations{}
veleroBackups.backupLocationBackup storage location""
veleroBackups.snapshotLocationVolume snapshot location""
veleroBackups.hourly.enabledEnable hourly backupsfalse
veleroBackups.hourly.minuteMinute for hourly backups0
veleroBackups.hourly.retentionNumber of hours after which hourly backups expire24
veleroBackups.daily.enabledEnable daily backupstrue
veleroBackups.daily.hourHour for daily backups0
veleroBackups.daily.minuteMinute for daily backups0
veleroBackups.daily.retentionNumber of days after which daily backups expire7
veleroBackups.weekly.enabledEnable weekly backupstrue
veleroBackups.weekly.dayDay of week for weekly backups0
veleroBackups.weekly.hourHour for weekly backups0
veleroBackups.weekly.minuteMinute for weekly backups0
veleroBackups.weekly.retentionNumber of weeks after which weekly backups expire5
veleroBackups.monthly.enabledEnable monthly backupstrue
veleroBackups.monthly.dayDay of month for monthly backups1
veleroBackups.monthly.hourHour for monthly backups0
veleroBackups.monthly.minuteMinute for monthly backups0
veleroBackups.monthly.retentionNumber of months after which monthly backups expire12
veleroBackups.yearly.enabledEnable yearly backupsfalse
veleroBackups.yearly.monthMonth for yearly backups1
veleroBackups.yearly.dayDay of month for yearly backups1
veleroBackups.yearly.hourHour for yearly backups0
veleroBackups.yearly.minuteMinute for yearly backups0
veleroBackups.yearly.retentionNumber of years after which yearly backups expire10

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartredis-extra is pinned at v2.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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