Skip to content

Commit

Permalink
Adds pod disruption budget to Graylog
Browse files Browse the repository at this point in the history
Signed-off-by: Alek Hrycaiko <[email protected]>
  • Loading branch information
alekhrycaiko committed Feb 28, 2024
1 parent a38b5a0 commit 7911ab6
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

Check failure on line 369 in charts/graylog/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

[comments] missing starting space in comment

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

0 comments on commit 7911ab6

Please sign in to comment.