-
Notifications
You must be signed in to change notification settings - Fork 4
[LFXV2-1166] Add pod disruption budget support #47
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Copyright The Linux Foundation and each contributor to LFX. | ||
| # SPDX-License-Identifier: MIT | ||
| {{- if .Values.podDisruptionBudget.enabled }} | ||
| {{- if and (hasKey .Values.podDisruptionBudget "minAvailable") (hasKey .Values.podDisruptionBudget "maxUnavailable") }} | ||
| {{- fail "podDisruptionBudget: cannot set both minAvailable and maxUnavailable" }} | ||
| {{- end }} | ||
| --- | ||
| apiVersion: policy/v1 | ||
| kind: PodDisruptionBudget | ||
| metadata: | ||
| name: {{ .Chart.Name }} | ||
| namespace: {{ .Release.Namespace }} | ||
| spec: | ||
| selector: | ||
| matchLabels: | ||
| app: {{ .Chart.Name }} | ||
| {{- if hasKey .Values.podDisruptionBudget "minAvailable" }} | ||
| minAvailable: {{ .Values.podDisruptionBudget.minAvailable }} | ||
| {{- end }} | ||
| {{- if hasKey .Values.podDisruptionBudget "maxUnavailable" }} | ||
| maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} | ||
| {{- end }} | ||
|
Comment on lines
+3
to
+22
|
||
| {{- end }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,13 @@ podAnnotations: {} | |
| # environment: production | ||
| podLabels: {} | ||
|
|
||
| # podDisruptionBudget configures a PodDisruptionBudget for the deployment. | ||
| # Only one of minAvailable or maxUnavailable may be set (not both). | ||
| podDisruptionBudget: | ||
| enabled: false | ||
| # minAvailable: 1 | ||
| # maxUnavailable: 1 | ||
|
Comment on lines
+39
to
+42
|
||
|
|
||
| # resources is the configuration for container resource limits and requests | ||
| resources: | ||
| # limits is the maximum amount of resources the container can use | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.