-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
control-service: add pod disruption budget (#2882)
# Why All for higher Control Service availability while permitting the cluster administrator to manage the clusters nodes. # What Add optional configuration for pod disruption budget.
- Loading branch information
dakodakov
authored
Nov 7, 2023
1 parent
74cd3ab
commit 68e3121
Showing
2 changed files
with
40 additions
and
11 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...service/projects/helm_charts/pipelines-control-service/templates/poddisruptionbudget.yaml
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,20 @@ | ||
{{- /* | ||
Copyright 2021-2023 VMware, Inc. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/}} | ||
|
||
{{- if .Values.poddisruptionbudget.enabled }} | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
labels: { { - include "pipelines-control-service.labels" . | nindent 4 } } | ||
{ { - range $key, $value := .Values.poddisruptionbudget.metadata.labels } } | ||
{ { $key } }: { { $value | quote } } | ||
{ { - end } } | ||
name: {{ .Release.Name }}-pdb | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
minAvailable: {{ .Values.poddisruptionbudget.minAvailable }} | ||
selector: | ||
matchLabels: { { - include "pipelines-control-service.selectorLabels" . | nindent 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