redis-sentinel

by genofire

Helm chartv0.16.14App 0.16.14

Provides easy redis setup definitions for Kubernetes services, and deployment.

About this chart

redis

Redis is a key-value based distributed database, this helm chart is for redis cluster setup. This helm chart needs Redis Operator inside Kubernetes cluster. The redis cluster definition can be modified or changed by values.yaml.

Homepage: https://github.com/ot-container-kit/redis-operator

Maintainers

NameEmailUrl
iamabhishek-dubey
sandy724
shubham-cmyk

Pre-Requisities

  • Kubernetes 1.15+
  • Helm 3.X
  • Redis Operator 0.7.0

Source Code

helm repo add ot-helm https://ot-container-kit.github.io/helm-charts/

helm install <my-release> ot-helm/redis-sentinel --namespace <namespace>

Redis setup can be upgraded by using helm upgrade command:-

helm upgrade <my-release> ot-helm/redis-sentinel --install --namespace <namespace>

For uninstalling the chart:-

helm delete <my-release> --namespace <namespace>

Values

KeyTypeDefaultDescription
TLS.castring"ca.crt"
TLS.certstring"tls.crt"
TLS.keystring"tls.key"
TLS.secret.defaultModeint288
TLS.secret.secretNamestring""
affinityobject{}
annotationsobject{}
envlist[]
externalConfig.datastring"tcp-keepalive 400\nslowlog-max-len 158\nstream-node-max-bytes 2048\n"
externalConfig.enabledboolfalse
externalService.enabledboolfalse
externalService.portint26379
externalService.serviceTypestring"NodePort"
initContainer.argslist[]
initContainer.commandlist[]
initContainer.enabledboolfalse
initContainer.envlist[]
initContainer.imagestring""
initContainer.imagePullPolicystring"IfNotPresent"
initContainer.resourcesobject{}
labelsobject{}
livenessProbe.failureThresholdint3
livenessProbe.initialDelaySecondsint1
livenessProbe.periodSecondsint10
livenessProbe.successThresholdint1
livenessProbe.timeoutSecondsint1
nodeSelectorobject{}
pdb.enabledboolfalse
pdb.maxUnavailablestringnil
pdb.minAvailableint1
podManagementPolicystring"OrderedReady"
podSecurityContext.fsGroupint1000
podSecurityContext.runAsUserint1000
priorityClassNamestring""
readinessProbe.failureThresholdint3
readinessProbe.initialDelaySecondsint1
readinessProbe.periodSecondsint10
readinessProbe.successThresholdint1
readinessProbe.timeoutSecondsint1
redisExporter.enabledboolfalse
redisExporter.envlist[]
redisExporter.imagestring"quay.io/opstree/redis-exporter"
redisExporter.imagePullPolicystring"IfNotPresent"
redisExporter.resourcesobject{}
redisExporter.securityContextobject{}
redisExporter.tagstring"v1.44.0"
redisSentinel.clusterSizeint3
redisSentinel.ignoreAnnotationslist[]
redisSentinel.imagestring"quay.io/opstree/redis-sentinel"
redisSentinel.imagePullPolicystring"IfNotPresent"
redisSentinel.imagePullSecretslist[]
redisSentinel.minReadySecondsint0
redisSentinel.namestring""
redisSentinel.persistentVolumeClaimRetentionPolicyobject{}
redisSentinel.recreateStatefulSetOnUpdateInvalidboolfalseSome fields of statefulset are immutable, such as volumeClaimTemplates. When set to true, the operator will delete the statefulset and recreate it. Default is false.
redisSentinel.redisSecret.secretKeystring""
redisSentinel.redisSecret.secretNamestring""
redisSentinel.resourcesobject{}
redisSentinel.serviceTypestring"ClusterIP"
redisSentinel.tagstring"v7.0.15"
redisSentinelConfig.announceHostnamesstring""
redisSentinelConfig.downAfterMillisecondsstring""
redisSentinelConfig.failoverTimeoutstring""
redisSentinelConfig.masterGroupNamestring""
redisSentinelConfig.parallelSyncsstring""
redisSentinelConfig.quorumstring""
redisSentinelConfig.redisPortstring""
redisSentinelConfig.redisReplicationNamestring"redis-replication"
redisSentinelConfig.redisReplicationPassword.secretKeystring""
redisSentinelConfig.redisReplicationPassword.secretNamestring""
redisSentinelConfig.resolveHostnamesstring""
securityContextobject{}
serviceAccountNamestring""
serviceMonitor.enabledboolfalse
serviceMonitor.extraLabelsobject{}extraLabels are added to the servicemonitor when enabled set to true
serviceMonitor.intervalstring"30s"
serviceMonitor.namespacestring""Namespace where servicemonitor resource will be created, if empty it will be created in the same namespace as the redis-sentinel
serviceMonitor.scrapeTimeoutstring"10s"
sidecarslist[]
tolerationslist[]
topologySpreadConstraintslist[]

Deploy redis-sentinel with OpenTenant

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