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