Skip to content

Commit

Permalink
Adds pod disruption budget to Graylog (#156)
Browse files Browse the repository at this point in the history
* Adds pod disruption budget to Graylog

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

* Fix lint failure

---------

Signed-off-by: Alek Hrycaiko <[email protected]>
  • Loading branch information
alekhrycaiko authored Mar 1, 2024
1 parent a38b5a0 commit bc13d6b
Show file tree
Hide file tree
Showing 3 changed files with 26 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.4
version: 2.3.5
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
18 changes: 18 additions & 0 deletions charts/graylog/templates/pod_disruption_budget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Values.graylog.podDisruptionBudget.create }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ template "graylog.fullname" . }}
labels:
{{ include "graylog.metadataLabels" . | indent 4 }}
spec:
{{- with .Values.graylog.podDisruptionBudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.graylog.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
{{ include "graylog.selectorLabels" . | indent 6 }}
{{- end }}
7 changes: 7 additions & 0 deletions charts/graylog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,13 @@ graylog:
##
# maxUnavailable: 10%

## See `kubectl explain poddisruptionbudget.spec` for more
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
podDisruptionBudget:
create: false
minAvailable: 1
# maxUnavailable: 1

## Graylog server pod termination grace period
##
terminationGracePeriodSeconds: 120
Expand Down

0 comments on commit bc13d6b

Please sign in to comment.