[bitnami/redis-cluster bitnami/redis] Add note about how to choose between both charts (#2287)

* [bitnami/redis-cluster bitnami/redis] Add note about how to choose between both charts

* Add documentation about how to choose between Charts

* Add note to Redis Helm Chart

* Fix issue with labels

* Bump major version

* Update notable changes in the README.md
This commit is contained in:
Miguel Ángel Cabrera Miñagorri
2020-04-15 11:08:37 +02:00
committed by GitHub
parent 734e060a34
commit 58a194211e
11 changed files with 54 additions and 9 deletions

View File

@@ -1,3 +1,21 @@
.git
# OWNERS file for Kubernetes
OWNERS
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: redis-cluster
version: 1.0.1
version: 2.0.0
appVersion: 5.0.8
description: 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.
keywords:

View File

@@ -1,5 +1,5 @@
# Redis
# Redis Cluster
[Redis](http://redis.io/) 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.
@@ -21,6 +21,18 @@ This chart bootstraps a [Redis](https://github.com/bitnami/bitnami-docker-redis)
Bitnami charts can be used with [Kubeapps](https://kubeapps.com/) for deployment and management of Helm Charts in clusters. This chart has been tested to work with NGINX Ingress, cert-manager, fluentd and Prometheus on top of the [BKPR](https://kubeprod.io/).
### Choose between Redis Helm Chart and Redis Cluster Helm Chart
You can choose any of the two Redis Helm charts for deploying a Redis cluster.
While [Redis Helm Chart](https://github.com/bitnami/charts/tree/master/bitnami/redis) will deploy a master-slave cluster using Redis Sentinel, the [Redis Cluster Helm Chart](https://github.com/bitnami/charts/tree/master/bitnami/redis-cluster) will deploy a Redis Cluster topology with sharding.
The main features of each chart are the following:
| Redis | Redis Cluster |
| ----------------------------------------- | ----------------------------------------------------------- |
| Supports multiple databases | Supports only one database. Better if you have a big dataset |
| Single write point (single master) | Multiple write points (multiple masters) |
| ![Redis Topology](img/redis-topology.png) | ![Redis Cluster Topology](img/redis-cluster-topology.png) |
## Prerequisites
- Kubernetes 1.12+
@@ -446,3 +458,9 @@ networkPolicy:
ingressNSPodMatchLabels:
redis-client: true
```
## Notable changes
### 2.0.0
The version `1.0.0` was using a label in the Statefulset's volumeClaimTemplate that didn't allow to upgrade the chart. The version `2.0.0` fixed that issue. Also it adds more docs in the README.md.

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

View File

@@ -10,7 +10,7 @@ Expand the name of the chart.
Expand the chart plus release name (used by the chart label)
*/}}
{{- define "redis-cluster.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*

View File

@@ -305,7 +305,6 @@ spec:
volumeClaimTemplates:
- metadata:
name: redis-data
labels: {{- include "redis-cluster.labels" . | nindent 10 }}
spec:
accessModes:
{{- range .Values.persistence.accessModes }}

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: redis
version: 10.6.5
version: 10.6.6
appVersion: 5.0.8
description: 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.
keywords:

View File

@@ -1,4 +1,3 @@
# Redis
[Redis](http://redis.io/) 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.
@@ -23,6 +22,17 @@ This chart bootstraps a [Redis](https://github.com/bitnami/bitnami-docker-redis)
Bitnami charts can be used with [Kubeapps](https://kubeapps.com/) for deployment and management of Helm Charts in clusters. This chart has been tested to work with NGINX Ingress, cert-manager, fluentd and Prometheus on top of the [BKPR](https://kubeprod.io/).
### Choose between Redis Helm Chart and Redis Cluster Helm Chart
You can choose any of the two Redis Helm charts for deploying a Redis cluster.
While [Redis Helm Chart](https://github.com/bitnami/charts/tree/master/bitnami/redis) will deploy a master-slave cluster using Redis Sentinel, the [Redis Cluster Helm Chart](https://github.com/bitnami/charts/tree/master/bitnami/redis-cluster) will deploy a Redis Cluster topology with sharding.
The main features of each chart are the following:
| Redis | Redis Cluster |
| ----------------------------------------- | ----------------------------------------------------------- |
| Supports multiple databases | Supports only one database. Better if you have a big dataset |
| Single write point (single master) | Multiple write points (multiple masters) |
| ![Redis Topology](img/redis-topology.png) | ![Redis Cluster Topology](img/redis-cluster-topology.png) |
## Prerequisites
- Kubernetes 1.12+

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB