-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds pod disruption budget to Graylog
Signed-off-by: Alek Hrycaiko <[email protected]>
- Loading branch information
1 parent
a38b5a0
commit 7911ab6
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters