From e66c4933666a29160ca855c0fb2771767760ef7f Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Sun, 3 Sep 2023 10:52:39 +0200 Subject: [PATCH] feat(helm): add PodDisruptionBudget and run staging in two replicas --- charts/backoffice/templates/pdb.yaml | 13 +++++++++++++ charts/backoffice/values.staging.yaml | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 charts/backoffice/templates/pdb.yaml diff --git a/charts/backoffice/templates/pdb.yaml b/charts/backoffice/templates/pdb.yaml new file mode 100644 index 0000000..147b821 --- /dev/null +++ b/charts/backoffice/templates/pdb.yaml @@ -0,0 +1,13 @@ +{{- if gt .Values.replicaCount 1 }} +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: {{ .Release.Name }} +spec: + minAvailable: {{ .Values.pdb.minAvailable }} + selector: + matchLabels: + app.kubernetes.io/name: {{ .Chart.Name }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/component: backend +{{- end }} diff --git a/charts/backoffice/values.staging.yaml b/charts/backoffice/values.staging.yaml index 49ae900..a10c893 100644 --- a/charts/backoffice/values.staging.yaml +++ b/charts/backoffice/values.staging.yaml @@ -1,3 +1,5 @@ +replicaCount: 2 + ingress: enabled: true host: staging.backoffice.mareshq.com