-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add optional PodDisruptionBudget to helm chart #515
Changes from 1 commit
5804c2b
68697b0
b48aff8
1df50cb
387aab4
9db630f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,13 @@ Create the name of the service account | |
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* Generate basic labels */}} | ||
{{- define "loki.labels" }} | ||
app: {{ template "loki.name" . }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should probably just inline all of these in pdb.yaml unless you're going to change every resource to use |
||
heritage: {{ .Release.Service }} | ||
release: {{ .Release.Name }} | ||
chart: {{ template "sentry-kubernetes.chart" . }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
{{- if .Values.podLabels }} | ||
{{ toYaml .Values.podLabels }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't add podLabels to non-pod resources |
||
{{- end }} | ||
{{- end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- if .Values.podDisruptionBudget -}} | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ template "loki.fullname" . }} | ||
labels: {{ include "loki.defaultLabels" . | indent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: {{ template "loki.name" . }} | ||
{{ toYaml .Values.podDisruptionBudget | indent 2 }} | ||
{{- end -}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,3 +144,7 @@ terminationGracePeriodSeconds: 30 | |
## Tolerations for pod assignment | ||
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ | ||
tolerations: [] | ||
|
||
# The values to set in the PodDisruptionBudget spec (minAvailable/maxUnavailable) | ||
# If not set then a PodDisruptionBudget will not be created | ||
podDisruptionBudget: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Default values should be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to bump wrapper chart loki-stack as well