An open API service indexing awesome lists of open source software.

https://github.com/mojixcoder/redis-cluster

Redis Cluster Kubernetes Helm Charts
https://github.com/mojixcoder/redis-cluster

helm kubernetes redis redis-cluster

Last synced: 12 months ago
JSON representation

Redis Cluster Kubernetes Helm Charts

Awesome Lists containing this project

README

          

## 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](https://s3.us-east-2.amazonaws.com/assets-university.redislabs.com/ru301/4.4/image1.png)

### 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](https://github.com/mojixcoder/redis-cluster/blob/main/values.yaml) to see how the parameters are used.

### Installation

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

```yaml
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](https://helm.sh/docs/helm/helm_dependency/).