From bf41fc88ce65c9ef6676c24238358b1353f7860c Mon Sep 17 00:00:00 2001 From: Mike Hepburn Date: Wed, 9 Dec 2020 14:24:08 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A9=20add=20pdb=20for=20minio,=20mysql?= =?UTF-8?q?=20=F0=9F=8E=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- minio/base/kustomization.yaml | 1 + minio/base/pdb.yaml | 12 ++++++++++++ mysql/base/kustomization.yaml | 1 + mysql/base/pdb.yaml | 12 ++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 minio/base/pdb.yaml create mode 100644 mysql/base/pdb.yaml diff --git a/minio/base/kustomization.yaml b/minio/base/kustomization.yaml index 042d780..d5fdf47 100644 --- a/minio/base/kustomization.yaml +++ b/minio/base/kustomization.yaml @@ -5,3 +5,4 @@ kind: Kustomization resources: - minio-createbucket.yaml - minio.yaml +- pdb.yaml diff --git a/minio/base/pdb.yaml b/minio/base/pdb.yaml new file mode 100644 index 0000000..831be1c --- /dev/null +++ b/minio/base/pdb.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: curriki-s3 + labels: + app: curriki-s3 +spec: + minAvailable: 1 + selector: + matchLabels: + app: curriki-s3 diff --git a/mysql/base/kustomization.yaml b/mysql/base/kustomization.yaml index bfdbda4..bee9eb5 100644 --- a/mysql/base/kustomization.yaml +++ b/mysql/base/kustomization.yaml @@ -7,3 +7,4 @@ resources: - secret.yaml - service.yaml - deployment.yaml +- pdb.yaml diff --git a/mysql/base/pdb.yaml b/mysql/base/pdb.yaml new file mode 100644 index 0000000..6324419 --- /dev/null +++ b/mysql/base/pdb.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: mysql + labels: + app: mysql +spec: + minAvailable: 1 + selector: + matchLabels: + app: mysql