Skip to content

Commit

Permalink
[bitnami/redis-cluster] feat: Set custom terminationGracePeriodSecond…
Browse files Browse the repository at this point in the history
…s for redis (#30470)

* Feat(redis-cluster): set custom terminationGracePeriodSeconds for redis

Signed-off-by: Sajad Sadrayieh <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

---------

Signed-off-by: Sajad Sadrayieh <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
  • Loading branch information
sajad-sadra and bitnami-bot authored Nov 26, 2024
1 parent 12adcdd commit 1cacaa5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
8 changes: 6 additions & 2 deletions bitnami/redis-cluster/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 11.0.8 (2024-11-11)
## 11.1.0 (2024-11-26)

* [bitnami/redis-cluster] Release 11.0.8 ([#30406](https://github.com/bitnami/charts/pull/30406))
* [bitnami/redis-cluster] feat: Set custom terminationGracePeriodSeconds for redis ([#30470](https://github.com/bitnami/charts/pull/30470))

## <small>11.0.8 (2024-11-11)</small>

* [bitnami/redis-cluster] Release 11.0.8 (#30406) ([03bdf29](https://github.com/bitnami/charts/commit/03bdf29b58fb4f1d4d9561d7654d39fc5e8e7ffd)), closes [#30406](https://github.com/bitnami/charts/issues/30406)

## <small>11.0.7 (2024-11-08)</small>

Expand Down
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
1 change: 1 addition & 0 deletions bitnami/redis-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ See [#15075](https://github.com/bitnami/charts/issues/15075)
| `redis.resources` | Set container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` |
| `redis.schedulerName` | Use an alternate scheduler, e.g. "stork". | `""` |
| `redis.shareProcessNamespace` | Enable shared process namespace in a pod. | `false` |
| `redis.terminationGracePeriodSeconds` | Set custom gracefull termination period for redis container. | `30` |
| `redis.livenessProbe.enabled` | Enable livenessProbe | `true` |
| `redis.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `5` |
| `redis.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `5` |
Expand Down
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
7 changes: 7 additions & 0 deletions bitnami/redis-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,13 @@ redis:
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
##
shareProcessNamespace: false
## @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 1cacaa5

Please sign in to comment.