diff --git a/charts/graylog/Chart.yaml b/charts/graylog/Chart.yaml index c449a48..da3642a 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.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 diff --git a/charts/graylog/templates/pod_disruption_budget.yaml b/charts/graylog/templates/pod_disruption_budget.yaml new file mode 100644 index 0000000..b982663 --- /dev/null +++ b/charts/graylog/templates/pod_disruption_budget.yaml @@ -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 }} diff --git a/charts/graylog/values.yaml b/charts/graylog/values.yaml index c73ecae..9a626e2 100644 --- a/charts/graylog/values.yaml +++ b/charts/graylog/values.yaml @@ -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