Skip to content

Commit

Permalink
Add max unavailable field. (#152)
Browse files Browse the repository at this point in the history
* Add max unavailable field.

Signed-off-by: Alek Hrycaiko <[email protected]>

* Update charts/graylog/values.yaml

Co-authored-by: Siri <[email protected]>

* Remove trailing space

---------

Signed-off-by: Alek Hrycaiko <[email protected]>
Co-authored-by: Siri <[email protected]>
  • Loading branch information
alekhrycaiko and KongZ authored Aug 31, 2023
1 parent 42c5050 commit a612064
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/graylog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: graylog
home: https://www.graylog.org
version: 2.3.2
version: 2.3.3
appVersion: 5.0.3
description: Graylog is the centralized log management solution built to open
standards for capturing, storing, and enabling real-time analysis of terabytes
Expand Down
4 changes: 4 additions & 0 deletions charts/graylog/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ spec:
{{ include "graylog.selectorLabels" . | indent 6 }}
updateStrategy:
type: {{ .Values.graylog.updateStrategy }}
{{- if .Values.graylog.maxUnavailable }}
rollingUpdate:
maxUnavailable: {{ .Values.graylog.maxUnavailable }}
{{- end }}
template:
metadata:
labels:
Expand Down
4 changes: 4 additions & 0 deletions charts/graylog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ graylog:
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
##
updateStrategy: RollingUpdate
## Control the maximum number of Pods that can be unavailable during an update
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#maximum-unavailable-pods
##
# maxUnavailable: 10%

## Graylog server pod termination grace period
##
Expand Down

0 comments on commit a612064

Please sign in to comment.