Skip to content

Commit

Permalink
Feat(redis-cluster): set custom terminationGracePeriodSeconds for redis
Browse files Browse the repository at this point in the history
Signed-off-by: Sajad Sadrayieh <[email protected]>
  • Loading branch information
sajad-sadra committed Nov 24, 2024
1 parent 3a59c40 commit 72f0b62
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bitnami/redis-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ maintainers:
name: redis-cluster
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/redis-cluster
version: 11.0.8
version: 11.1.0
3 changes: 3 additions & 0 deletions bitnami/redis-cluster/templates/redis-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ spec:
{{- if .Values.redis.shareProcessNamespace }}
shareProcessNamespace: {{ .Values.redis.shareProcessNamespace }}
{{- end }}
{{- if .Values.redis.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.redis.terminationGracePeriodSeconds }}
{{- end }}
{{- if .Values.redis.schedulerName }}
schedulerName: {{ .Values.redis.schedulerName | quote }}
{{- end }}
Expand Down
9 changes: 8 additions & 1 deletion bitnami/redis-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,14 @@ redis:
## Enable this only if customLivenessProbe or customReadinessProbe is used and zombie PIDs are accumulating.
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
##
shareProcessNamespace: false
shareProcessNamespace:
## @param redis.terminationGracePeriodSeconds Set custom gracefull termination period for redis container.
## If not set the kubernetes default will be applied.
## Customize it based on your workload. Huge redis with high load may wants more than default time to dump
## their data before complete termination.
## Ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-handler-execution
##
terminationGracePeriodSeconds: 30
## Configure extra options for Redis&reg; liveness probes
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
## @param redis.livenessProbe.enabled Enable livenessProbe
Expand Down

0 comments on commit 72f0b62

Please sign in to comment.