Skip to content

Commit 516835e

Browse files
committed
feat: added minReadySeconds parameter
1 parent 4dc90f3 commit 516835e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This repository contains Redis cluster helm charts that can survive pod restarts
1515
`redis.port` | Redis server port | `6379`
1616
`redis.bus` | Redis cluster bus port | `16379`
1717
`redis.resources` | The resources of the redis container | `{}`
18+
`redis.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`
1819
`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`
1920
`cluster.master` | Number of master nodes | `3`
2021
`cluster.replicas` | Number of replicas of each master | `1`

templates/statefulset.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ spec:
99
matchLabels: {{ include "redis-cluster.labels" . | nindent 6 }}
1010
serviceName: {{ include "redis-cluster.name" . }}-headless
1111
replicas: {{ include "redis-cluster.replicaCount" . }}
12+
{{- if .Values.redis.minReadySeconds }}
13+
minReadySeconds: {{ .Values.redis.minReadySeconds }}
14+
{{- end }}
1215
template:
1316
metadata:
1417
labels: {{ include "redis-cluster.labels" . | nindent 8 }}

values.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
nameOverride: redis-cluster
2-
fullnameOverride: redis-cluster
1+
nameOverride: ""
2+
fullnameOverride: ""
33

44
redis:
55
image: redis:7.2.3
66
port: 6379
77
bus: 16379
8+
minReadySeconds: 0
89

910
cluster:
1011
init: true

0 commit comments

Comments
 (0)