redis

by Helm

Helm chartv1.3.7App 6.2.1

Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

About this chart

redis

Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

Homepage: https://github.com/appuio/charts/tree/master/appuio/redis

Installation

helm repo add appuio https://charts.appuio.ch
helm install redis appuio/redis

Values

KeyTypeDefaultDescription
cluster.enabledbooltrueEnable clustering
cluster.slaveCountint2Number of slaves
clusterDomainstring"cluster.local"Specifies the Kubernetes Cluster's Domain Name.
configmapstring"# Enable AOF https://redis.io/topics/persistence#append-only-file\nappendonly yes\n# Disable RDB persistence, AOF persistence already enabled.\nsave \"\""Redis(TM) config file
containerSecurityContextobject{"enabled":true,"runAsUser":1001}Container Security Context
global.redisobject{}
image.pullPolicystring"IfNotPresent"Redis image pull policy Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
image.registrystring"docker.io"Redis image registry
image.repositorystring"bitnami/redis"Redis image repository
image.tagstring"6.2.1-debian-10-r36"Redis image tag (immutable tags are recommended)
master.affinityobject{}Redis(TM) Master pod/node affinity/anti-affinity
master.commandstring"/run.sh"Redis(TM) command arguments
master.configmapstringnilAdditional Redis(TM) configuration for the master nodes
master.customLivenessProbeobject{}
master.customReadinessProbeobject{}
master.disableCommandslist["FLUSHDB","FLUSHALL"]Comma-separated list of Redis(TM) commands to disable
master.extraEnvVarslist[]An array to add extra env vars
master.extraEnvVarsCMlist[]ConfigMap with extra env vars:
master.extraEnvVarsSecretlist[]Secret with extra env vars:
master.extraFlagslist[]Redis(TM) additional command line flags
master.hostAliaseslist[]Deployment pod host aliases
master.livenessProbe.enabledbooltrue
master.livenessProbe.failureThresholdint5
master.livenessProbe.initialDelaySecondsint5
master.livenessProbe.periodSecondsint5
master.livenessProbe.successThresholdint1
master.livenessProbe.timeoutSecondsint5
master.persistence.accessModes[0]string"ReadWriteOnce"
master.persistence.enabledbooltrueEnable persistence using Persistent Volume Claims
master.persistence.matchExpressionsobject{}
master.persistence.matchLabelsobject{}Persistent Volume selectors
master.persistence.pathstring"/data"The path the volume will be mounted at, useful when using different Redis(TM) images.
master.persistence.sizestring"8Gi"
master.persistence.subPathstring""The subdirectory of the volume to mount to.
master.persistence.volumesstringnil
master.podAnnotationsobject{}Redis(TM) Master additional pod annotations
master.podLabelsobject{}Redis(TM) Master additional pod labels
master.preExecCmdsstring""Additional commands to run prior to starting Redis(TM)
master.priorityClassNamestringnilRedis(TM) Master pod priorityClassName
master.readinessProbe.enabledbooltrue
master.readinessProbe.failureThresholdint5
master.readinessProbe.initialDelaySecondsint5
master.readinessProbe.periodSecondsint5
master.readinessProbe.successThresholdint1
master.readinessProbe.timeoutSecondsint5
master.service.annotationsobject{}Provide any additional annotations
master.service.externalTrafficPolicystring"Cluster"External traffic policy (when service type is LoadBalancer)
master.service.labelsobject{}Provide any additional labels
master.service.loadBalancerIPstringnil
master.service.portint6379Redis(TM) Master Service port
master.service.typestring"ClusterIP"Redis(TM) Master Service type
master.shareProcessNamespaceboolfalseEnable shared process namespace in a pod. If set to false (default), each container will run in separate namespace, redis will have PID=1. If set to true, the /pause will run as init process and will reap any zombie PIDs.
master.statefulset.annotationsobject{}
master.statefulset.labelsobject{}
master.statefulset.updateStrategystring"RollingUpdate"
master.statefulset.volumeClaimTemplates.annotationsobject{}
master.statefulset.volumeClaimTemplates.labelsobject{}
metrics.enabledboolfalseEnable Prometheus Exporter
metrics.image.pullPolicystring"IfNotPresent"Exporter pull policy
metrics.image.registrystring"docker.io"Exporter image registry
metrics.image.repositorystring"bitnami/redis-exporter"Exporter image repository
metrics.image.tagstring"1.32.0-debian-10-r16"Exporter image tag
metrics.podAnnotationsobject{"prometheus.io/port":"9121","prometheus.io/scrape":"true"}Metrics exporter pod Annotation
metrics.priorityClassNamestringnilMetrics exporter pod priorityClassName
metrics.prometheusRule.additionalLabelsobject{}
metrics.prometheusRule.enabledboolfalse
metrics.prometheusRule.namespacestring""
metrics.prometheusRule.ruleslist[]
metrics.redisTargetHoststring"localhost"A way to specify an alternative redis hostname
metrics.service.annotationsobject{}
metrics.service.externalTrafficPolicystring"Cluster"External traffic policy (when service type is LoadBalancer)
metrics.service.labelsobject{}
metrics.service.typestring"ClusterIP"
metrics.serviceMonitor.enabledboolfalse
metrics.serviceMonitor.metricRelabelingslist[]
metrics.serviceMonitor.relabelingslist[]
metrics.serviceMonitor.selector.prometheusstring"kube-prometheus"
networkPolicy.enabledboolfalseSpecifies whether a NetworkPolicy should be created
networkPolicy.ingressNSMatchLabelsobject{}Allow connections from other namespaces. Just set label for namespace and set label for pods (optional).
networkPolicy.ingressNSPodMatchLabelsobject{}
passwordstring""Redis(TM) password (both master and slave). Defaults to a random 10-character alphanumeric string if not set and usePassword is true.
persistence.existingClaimstringnil
podDisruptionBudget.enabledboolfalseCreate a disruption budget
podDisruptionBudget.minAvailableint1
podSecurityPolicy.createboolfalseSpecifies whether a PodSecurityPolicy should be created
rbac.createboolfalseSpecifies whether RBAC resources should be created
rbac.role.ruleslist[]Rules to create. It follows the role specification
redisPortint6379Redis(TM) port
securityContextobject{"enabled":true,"fsGroup":1001}Redis(TM) pod Security Context
sentinel.cleanDelaySecondsint5Delay seconds when cleaning nodes IPs. When starting it will clean the sentinels IP (RESET "*") in all the nodes. This is the delay time before sending the command to the next node.
sentinel.configmapstringnilAdditional Redis(TM) configuration for the sentinel nodes
sentinel.customLivenessProbeobject{}
sentinel.customReadinessProbeobject{}
sentinel.downAfterMillisecondsint20000
sentinel.enabledboolfalseEnable sentinel This will disable the master and slave services and create one redis service with ports to the sentinel and the redis instances
sentinel.extraEnvVarslist[]An array to add extra env var to the sentinel node configurations
sentinel.extraEnvVarsCMlist[]ConfigMap with extra env vars:
sentinel.extraEnvVarsSecretlist[]Secret with extra env vars:
sentinel.failoverTimeoutint18000
sentinel.forceUpdateboolfalseForce update the StatefulSet. If enabled the chart will recreate the StatefulSet without touching the Pods (cascade orphan), allowing you to update locked field, such as PVC size. Currently only supports changes in PVC size.
sentinel.forceUpdateKubectlImagestring"quay.io/bitnami/kubectl"Image used to recreate the StatefulSet. Needs to have kubectl and jq in its $PATH.
sentinel.image.pullPolicystring"IfNotPresent"Sentinel image pull policy Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
sentinel.image.registrystring"docker.io"Sentinel image registry
sentinel.image.repositorystring"bitnami/redis-sentinel"Sentinel image repository
sentinel.image.tagstring"6.2.1-debian-10-r35"Sentinel image tag
sentinel.initialCheckTimeoutint5
sentinel.livenessProbe.enabledbooltrue
sentinel.livenessProbe.failureThresholdint5
sentinel.livenessProbe.initialDelaySecondsint5
sentinel.livenessProbe.periodSecondsint5
sentinel.livenessProbe.successThresholdint1
sentinel.livenessProbe.timeoutSecondsint5
sentinel.masterSetstring"mymaster"
sentinel.metrics.enabledboolfalseEnable Prometheus Exporter / Metrics for Redis Sentinel Exporter
sentinel.metrics.image.pullPolicystring"IfNotPresent"Sentinel Exporter pull policy
sentinel.metrics.image.registrystring"docker.io"Sentinel Exporter image registry
sentinel.metrics.image.repositorystring"bitnami/redis-sentinel-exporter"Sentinel Exporter image repository
sentinel.metrics.image.tagstring"1.7.1-debian-10-r109"Sentinel Exporter image tag
sentinel.metrics.resourcesobject{"limits":{},"requests":{}}Sentinel metrics exporter resource requests and limits
sentinel.metrics.service.annotationsobject{}
sentinel.metrics.service.externalTrafficPolicystring"Cluster"External traffic policy (when service type is LoadBalancer)
sentinel.metrics.service.labelsobject{}
sentinel.metrics.service.portint9355Metrics port
sentinel.metrics.service.typestring"ClusterIP"Metrics Service type
sentinel.metrics.serviceMonitor.enabledboolfalse
sentinel.metrics.serviceMonitor.selector.prometheusstring"kube-prometheus"
sentinel.parallelSyncsint1
sentinel.portint26379
sentinel.preExecCmdsstring""Additional commands to run prior to starting Redis(TM) node with sentinel
sentinel.quorumint2
sentinel.readinessProbe.enabledbooltrue
sentinel.readinessProbe.failureThresholdint5
sentinel.readinessProbe.initialDelaySecondsint5
sentinel.readinessProbe.periodSecondsint5
sentinel.readinessProbe.successThresholdint1
sentinel.readinessProbe.timeoutSecondsint5
sentinel.service.annotationsobject{}Provide any additional annotations which may be required. This can be used to set the LoadBalancer service type to internal only.
sentinel.service.externalTrafficPolicystring"Cluster"External traffic policy (when service type is LoadBalancer)
sentinel.service.labelsobject{}
sentinel.service.loadBalancerIPstringnil
sentinel.service.redisPortint6379
sentinel.service.sentinelPortint26379
sentinel.service.typestring"ClusterIP"Redis(TM) Sentinel Service type
sentinel.staticIDboolfalseEnable or disable static sentinel IDs for each replicas. If disabled each sentinel will generate a random id at startup. If enabled, each replicas will have a constant ID on each start-up.
sentinel.usePasswordbooltrueRequire password authentication on the sentinel itself
serviceAccount.createboolfalseSpecifies whether a ServiceAccount should be created
serviceAccount.namestringnilThe name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template
slave.affinityobject{}Redis(TM) Slave pod/node affinity/anti-affinity
slave.commandstring"/run.sh"Can be used to specify command line arguments
slave.configmapstringnilAdditional Redis(TM) configuration for the slave nodes
slave.customLivenessProbeobject{}
slave.customReadinessProbeobject{}
slave.disableCommandslist["FLUSHDB","FLUSHALL"]List of Redis(TM) commands to disable
slave.extraEnvVarslist[]An array to add extra env vars
slave.extraEnvVarsCMlist[]ConfigMap with extra env vars:
slave.extraEnvVarsSecretlist[]Secret with extra env vars:
slave.extraFlagslist[]Redis(TM) extra flags
slave.hostAliaseslist[]Deployment pod host aliases
slave.livenessProbe.enabledbooltrue
slave.livenessProbe.failureThresholdint

Deploy redis with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has redis 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 is pinned at v1.3.7 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