From c10cb22e191190975434f16688eb5f6e02688184 Mon Sep 17 00:00:00 2001 From: Alek Hrycaiko Date: Tue, 29 Aug 2023 21:41:53 -0700 Subject: [PATCH 1/3] Add max unavailable field. Signed-off-by: Alek Hrycaiko --- charts/graylog/Chart.yaml | 2 +- charts/graylog/templates/statefulset.yaml | 4 ++++ charts/graylog/values.yaml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/graylog/Chart.yaml b/charts/graylog/Chart.yaml index 6eb4174..3247f44 100755 --- a/charts/graylog/Chart.yaml +++ b/charts/graylog/Chart.yaml @@ -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 diff --git a/charts/graylog/templates/statefulset.yaml b/charts/graylog/templates/statefulset.yaml index 58b7f89..0ce8f33 100644 --- a/charts/graylog/templates/statefulset.yaml +++ b/charts/graylog/templates/statefulset.yaml @@ -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: diff --git a/charts/graylog/values.yaml b/charts/graylog/values.yaml index d25d9df..47dafa5 100644 --- a/charts/graylog/values.yaml +++ b/charts/graylog/values.yaml @@ -356,6 +356,7 @@ graylog: ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies ## updateStrategy: RollingUpdate + #maxUnavailable: 10% ## Graylog server pod termination grace period ## From 8d3fe29cf27cc5140fd3838229df81f5c637faf5 Mon Sep 17 00:00:00 2001 From: Alek Hrycaiko Date: Wed, 30 Aug 2023 09:38:33 -0700 Subject: [PATCH 2/3] Update charts/graylog/values.yaml Co-authored-by: Siri --- charts/graylog/values.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/graylog/values.yaml b/charts/graylog/values.yaml index 47dafa5..04b332c 100644 --- a/charts/graylog/values.yaml +++ b/charts/graylog/values.yaml @@ -356,7 +356,10 @@ graylog: ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies ## updateStrategy: RollingUpdate - #maxUnavailable: 10% + ## 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 ## From 29cc616b398847fc8d3589e0d86e6a1c566de148 Mon Sep 17 00:00:00 2001 From: Alek Hrycaiko Date: Wed, 30 Aug 2023 10:53:44 -0700 Subject: [PATCH 3/3] Remove trailing space --- charts/graylog/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/graylog/values.yaml b/charts/graylog/values.yaml index 04b332c..c73ecae 100644 --- a/charts/graylog/values.yaml +++ b/charts/graylog/values.yaml @@ -356,7 +356,7 @@ 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 + ## 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%