Skip to content

investtools/helm-redis-ha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Redis

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.

TL;DR;

$ helm install stable/redis-ha

By default this chart install one master pod containing redis master container and sentinel container, 2 sentinels and 1 redis slave.

Introduction

This chart bootstraps a Redis deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.5+ with Beta APIs enabled
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart

$ helm install stable/redis-ha

The command deploys Redis on the Kubernetes cluster in the default configuration. By default this chart install one master pod containing redis master container and sentinel container, 2 sentinels and 1 redis slave. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the deployment:

$ helm delete <chart-name>

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the Redis chart and their default values.

Parameter Description Default
redis_image Redis image gcr.io/google_containers/redis:v1
persistentVolume.enabled Use a PVC to persist data false
persistentVolume.storageClass Storage class of backing PVC generic
persistentVolume.accessMode Use volume as ReadOnly or ReadWrite ReadWriteOnce
persistentVolume.size Size of data volume 8Gi
persistentVolume.annotations Redis data Persistent Volume Claim annotations {}
persistentVolume.existingClaim Redis data Persistent Volume existing claim name ``
persistentVolume.mountPath Redis data Persistent Volume mount root path /data
persistentVolume.subPath Subdirectory of redis data Persistent Volume to mount ``
resources.master CPU/Memory for master nodes resource requests/limits Memory: 200Mi, CPU: 100m
resources.slave CPU/Memory for slave nodes resource requests/limits Memory: 200Mi, CPU: 100m
resources.sentinel CPU/Memory for sentinel node resource requests/limits Memory: 200Mi, CPU: 100m
replicas.master Number of master pods 1
replicas.slave Number of slave pods 1
replicas.sentinel Number of sentinel pods 3

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install \
  --set redis_image=gcr.io/google_containers/redis:v1 \
    stable/redis-ha

The above command sets the Redis server within default namespace.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install -f values.yaml stable/redis-ha

Tip: You can use the default values.yaml

Persistence

The chart mounts a Persistent Volume volume at this location. The volume is created using dynamic volume provisioning.

Releases

No releases published

Packages

 
 
 

Contributors

Languages