Skip to content

mojixcoder/redis-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis Cluster Kubernetes Helm Charts

This repository contains Redis cluster helm charts that can survive pod restarts in which the pod IPs get changed afterwards, the cluster will be recovered successfully.

Redis-Cluster

Parameters

Name Description Example
nameOverride String to override redis-cluster.name template redis-cluster
fullnameOverride String to override redis-cluster.fullname template redis-cluster
securityContext.enabled Whether to enable pod's container security context or not false
securityContext Pod's security context {}
minReadySeconds minimum number of seconds for which a newly created Pod should be running and ready without any of its containers crashing, for it to be considered available 10
priorityClassName Priority indicates the importance of a Pod relative to other Pods high-priority
serviceAccount.enabled Enable or disable service account false
serviceAccount.name Name of the service account default
redis.image Redis docker image redis:7.2.4
redis.port Redis server port 6379
redis.bus Redis cluster bus port 16379
redis.securityContext.enabled Whether to enable the Redis container security context or not false
redis.securityContext Redis container security context {}
redis.resources The resources of the redis container {}
cluster.init A boolean to specify whether the cluster should be initialized. (Can be false when cluster is already created and maybe you just want to change the resources of the cluster) true
cluster.master Number of master nodes 3
cluster.replicas Number of replicas of each master 1
metrics.enabled Turn on/off Redis exporter true
metrics.image Docker image of Redis exporter oliver006/redis_exporter:v1.56.0
metrics.securityContext.enabled Whether to enable metrics container security context false
metrics.securityContext Metric's container security context {}
metrics.resources Resources of metrics container {}
metrics.serviceMonitor.enabled Create a service monitor if metrics is enabled true
metrics.serviceMonitor.interval Metrics scraping interval 30s
service.enabled Create a service to access the cluster true
service.type Service type ClusterIP
persistence.storage volume storage 2Gi
persistence.accessModes volume access modes ["ReadWriteOnce"]
persistence.storageClassName Storage class name of PVC ceph-rdb
extraConfig Passing extra key-value configs to redis.conf {}

Please see the values.yaml to see how the parameters are used.

Installation

You should add this package as a dependency in Charts.yaml file:

dependencies:
  - name: redis-cluster
    version: 0.4.0
    repository: oci://registry.hub.docker.com/mojixcoder

To learn more about adding dependencies to your Helm charts, please follow this link.