From 7bf57eb65a3b695dbc346d1ac1ef73d328ba33c4 Mon Sep 17 00:00:00 2001 From: Mike Hepburn Date: Wed, 9 Dec 2020 14:09:31 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=8Dadd=20pdb=20to=20curriki=20apps=20?= =?UTF-8?q?=F0=9F=92=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- curriki-admin/chart/templates/pdb.yaml | 12 ++++++++++++ curriki-api/chart/templates/pdb.yaml | 12 ++++++++++++ curriki-tsugi/web/chart/templates/_helpers.tpl | 1 + curriki-tsugi/web/chart/templates/pdb.yaml | 12 ++++++++++++ curriki-ui/chart/templates/pdb.yaml | 12 ++++++++++++ 5 files changed, 49 insertions(+) create mode 100644 curriki-admin/chart/templates/pdb.yaml create mode 100644 curriki-api/chart/templates/pdb.yaml create mode 100644 curriki-tsugi/web/chart/templates/pdb.yaml create mode 100644 curriki-ui/chart/templates/pdb.yaml diff --git a/curriki-admin/chart/templates/pdb.yaml b/curriki-admin/chart/templates/pdb.yaml new file mode 100644 index 0000000..ada7505 --- /dev/null +++ b/curriki-admin/chart/templates/pdb.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: {{ include "curriki-admin.fullname" . }} + labels: + {{- include "curriki-admin.labels" . | nindent 4 }} +spec: + minAvailable: 1 + selector: + matchLabels: + deploymentconfig: {{ include "curriki-admin.fullname" . }} \ No newline at end of file diff --git a/curriki-api/chart/templates/pdb.yaml b/curriki-api/chart/templates/pdb.yaml new file mode 100644 index 0000000..8b6a29a --- /dev/null +++ b/curriki-api/chart/templates/pdb.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: {{ include "curriki-api.fullname" . }} + labels: + {{- include "curriki-api.labels" . | nindent 4 }} +spec: + minAvailable: 1 + selector: + matchLabels: + deploymentconfig: {{ include "curriki-api.fullname" . }} \ No newline at end of file diff --git a/curriki-tsugi/web/chart/templates/_helpers.tpl b/curriki-tsugi/web/chart/templates/_helpers.tpl index 09b1cd2..92e5740 100644 --- a/curriki-tsugi/web/chart/templates/_helpers.tpl +++ b/curriki-tsugi/web/chart/templates/_helpers.tpl @@ -51,4 +51,5 @@ Selector labels app.kubernetes.io/name: {{ include "curriki-tsugi.name" . }} app.kubernetes.io/component: {{ include "curriki-tsugi.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} +deploymentconfig: {{ include "curriki-tsugi.fullname" . }} {{- end -}} diff --git a/curriki-tsugi/web/chart/templates/pdb.yaml b/curriki-tsugi/web/chart/templates/pdb.yaml new file mode 100644 index 0000000..c914fd0 --- /dev/null +++ b/curriki-tsugi/web/chart/templates/pdb.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: {{ include "curriki-tsugi.fullname" . }} + labels: + {{- include "curriki-tsugi.labels" . | nindent 4 }} +spec: + minAvailable: 1 + selector: + matchLabels: + deploymentconfig: {{ include "curriki-tsugi.fullname" . }} \ No newline at end of file diff --git a/curriki-ui/chart/templates/pdb.yaml b/curriki-ui/chart/templates/pdb.yaml new file mode 100644 index 0000000..a788e97 --- /dev/null +++ b/curriki-ui/chart/templates/pdb.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: {{ include "curriki-ui.fullname" . }} + labels: + {{- include "curriki-ui.labels" . | nindent 4 }} +spec: + minAvailable: 1 + selector: + matchLabels: + deploymentconfig: {{ include "curriki-ui.fullname" . }} \ No newline at end of file