diff --git a/charts/redis-ha/Chart.yaml b/charts/redis-ha/Chart.yaml index c007c8d..13a6867 100644 --- a/charts/redis-ha/Chart.yaml +++ b/charts/redis-ha/Chart.yaml @@ -5,7 +5,7 @@ keywords: - redis - keyvalue - database -version: 4.35.3 +version: 4.35.4 appVersion: 8.2.2 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 diff --git a/charts/redis-ha/templates/redis-ha-statefulset.yaml b/charts/redis-ha/templates/redis-ha-statefulset.yaml index f5bb12b..eeb54c2 100644 --- a/charts/redis-ha/templates/redis-ha-statefulset.yaml +++ b/charts/redis-ha/templates/redis-ha-statefulset.yaml @@ -484,6 +484,8 @@ spec: - name: split-brain-fix image: {{ .Values.image.repository }}:{{ .Values.image.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} + livenessProbe: {{ .Values.splitBrainDetection.livenessProbe | toYaml | nindent 10 }} + readinessProbe: {{ .Values.splitBrainDetection.readinessProbe | toYaml | nindent 10 }} resources: {{ toYaml .Values.splitBrainDetection.resources | nindent 10 }} command: - sh diff --git a/charts/redis-ha/values.yaml b/charts/redis-ha/values.yaml index 4edd058..64cd640 100644 --- a/charts/redis-ha/values.yaml +++ b/charts/redis-ha/values.yaml @@ -1062,3 +1062,37 @@ splitBrainDetection: retryInterval: 10 # -- splitBrainDetection resources resources: {} + # liveness probe parameters for split brain container + livenessProbe: + # -- Initial delay in seconds for liveness probe + initialDelaySeconds: 30 + # -- Period in seconds after which liveness probe will be repeated + periodSeconds: 15 + # -- Timeout seconds for liveness probe + timeoutSeconds: 15 + # -- Success threshold for liveness probe + successThreshold: 1 + # -- Failure threshold for liveness probe + failureThreshold: 5 + exec: + command: + - cat + - /readonly-config/redis.conf + + # readiness probe parameters for split brain container + readinessProbe: + # -- Initial delay in seconds for readiness probe + initialDelaySeconds: 30 + # -- Period in seconds after which readiness probe will be repeated + periodSeconds: 15 + # -- Timeout seconds for readiness probe + timeoutSeconds: 15 + # -- Success threshold for readiness probe + successThreshold: 1 + # -- Failure threshold for readiness probe + failureThreshold: 5 + exec: + command: + - pgrep + - -f + - fix-split-brain.sh