Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/redis-ha/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ keywords:
- redis
- keyvalue
- database
version: 4.39.0
version: 4.39.1
appVersion: 8.8.0
description: This Helm chart provides a highly available Redis implementation with a master/slave configuration and uses Sentinel sidecars for failover management
icon: https://img.icons8.com/external-tal-revivo-shadow-tal-revivo/24/external-redis-an-in-memory-data-structure-project-implementing-a-distributed-logo-shadow-tal-revivo.png
Expand Down
4 changes: 4 additions & 0 deletions charts/redis-ha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ The following table lists the configurable parameters of the Redis chart and the
| `persistentVolume.labels` | Labels for the volume | object | `{}` |
| `persistentVolume.size` | Persistent volume size | string | `"10Gi"` |
| `persistentVolume.storageClass` | redis-ha data Persistent Volume Storage Class | string | `nil` |
| `persistentVolumeClaimRetentionPolicy` | Configure whether PersistentVolumeClaims created by the StatefulSet are retained or deleted when the StatefulSet is deleted or scaled down. Requires Kubernetes support for StatefulSet PersistentVolumeClaim retention. | object | `{"enabled":false,"whenDeleted":"Retain","whenScaled":"Retain"}` |
| `persistentVolumeClaimRetentionPolicy.enabled` | Enable StatefulSet PersistentVolumeClaim retention policy | bool | `false` |
| `persistentVolumeClaimRetentionPolicy.whenDeleted` | PVC retention behavior when the StatefulSet is deleted. Allowed values: Retain, Delete | string | `"Retain"` |
| `persistentVolumeClaimRetentionPolicy.whenScaled` | PVC retention behavior when the StatefulSet is scaled down. Allowed values: Retain, Delete | string | `"Retain"` |
| `podDisruptionBudget` | Pod Disruption Budget rules | object | `{}` |
| `podManagementPolicy` | The statefulset pod management policy | string | `"OrderedReady"` |
| `priorityClassName` | Kubernetes priorityClass name for the redis-ha-server pod | string | `""` |
Expand Down
5 changes: 5 additions & 0 deletions charts/redis-ha/templates/redis-ha-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ spec:
serviceName: {{ template "redis-ha.fullname" . }}
replicas: {{ .Values.replicas }}
podManagementPolicy: {{ .Values.podManagementPolicy }}
{{- if .Values.persistentVolumeClaimRetentionPolicy.enabled }}
persistentVolumeClaimRetentionPolicy:
whenDeleted: {{ .Values.persistentVolumeClaimRetentionPolicy.whenDeleted }}
whenScaled: {{ .Values.persistentVolumeClaimRetentionPolicy.whenScaled }}
{{- end }}
updateStrategy:
type: {{ .Values.redis.updateStrategy.type }}
{{- if .Values.redis.minReadySeconds }}
Expand Down
12 changes: 12 additions & 0 deletions charts/redis-ha/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,18 @@ persistentVolume:
annotations: {}
# -- Labels for the volume
labels: {}

# -- Configure whether PersistentVolumeClaims created by the StatefulSet are
# retained or deleted when the StatefulSet is deleted or scaled down.
# Requires Kubernetes support for StatefulSet PersistentVolumeClaim retention.
persistentVolumeClaimRetentionPolicy:
# -- Enable StatefulSet PersistentVolumeClaim retention policy
enabled: false
# -- PVC retention behavior when the StatefulSet is deleted. Allowed values: Retain, Delete
whenDeleted: Retain
# -- PVC retention behavior when the StatefulSet is scaled down. Allowed values: Retain, Delete
whenScaled: Retain

init:
# -- Extra init resources
resources: {}
Expand Down