Skip to content
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

control-service: add pod disruption budget #2882

Merged
merged 6 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,15 @@ resources:
cpu: 500m
memory: 500Mi

# Specify Pod Disruption Budget for the Control Service Deployment to allow for higher availability while permitting
# the cluster administrator to manage the clusters nodes
# see https://kubernetes.io/docs/tasks/run-application/configure-pdb/
poddisruptionbudget:
enabled: false
metadata:
labels: # additional labels if needed
minAvailable: 1

## [Required] Database configuration used by Control Plane
## Database is used to store Data Jobs metadata like name, team, description
## and some deploy specific configuration like execution schedule
Expand Down Expand Up @@ -1182,14 +1191,14 @@ alertmanager:
# More information here: https://github.com/vmware/versatile-data-kit/tree/main/specs/vep-1493-vault-integration
secrets:
vault:
enabled: false
## Name of the secret which holds Vault URI and Approle RoleId and SecretId. The chart will not attempt to
## create this, but will use it as is.
## The secret should contain keys: URI, ROLEID, SECRETID
externalSecretName: ""
## Alternatively provide the uri and Approle Settings here. externalSecretName takes precedence if both are set.
uri: "http://localhost:8200"
approle:
roleid: foo
secretid: foo
sizeLimitBytes: "1048576"
enabled: false
## Name of the secret which holds Vault URI and Approle RoleId and SecretId. The chart will not attempt to
## create this, but will use it as is.
## The secret should contain keys: URI, ROLEID, SECRETID
externalSecretName: ""
## Alternatively provide the uri and Approle Settings here. externalSecretName takes precedence if both are set.
uri: "http://localhost:8200"
approle:
roleid: foo
secretid: foo
sizeLimitBytes: "1048576"