From b8a97aa5acbe0ac3d4326774871946ac933d90c5 Mon Sep 17 00:00:00 2001 From: Larry Rensing Date: Thu, 18 May 2017 15:30:43 +0000 Subject: [PATCH] Adding pod disruption budget for barbican This PS adds a default pod disruption budget for barbican-api to ensure at least one replica is running. Change-Id: I505028d6c277edb3a1da2690545e630df5e2fb16 --- barbican/templates/pdb-api.yaml | 9 +++++++++ barbican/values.yaml | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 barbican/templates/pdb-api.yaml diff --git a/barbican/templates/pdb-api.yaml b/barbican/templates/pdb-api.yaml new file mode 100644 index 0000000000..ce62b01733 --- /dev/null +++ b/barbican/templates/pdb-api.yaml @@ -0,0 +1,9 @@ +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: barbican-api +spec: + minAvailable: {{ .Values.pod_disruption_budget.api.min_available }} + selector: + matchLabels: + app: barbican-api \ No newline at end of file diff --git a/barbican/values.yaml b/barbican/values.yaml index b200354b3a..2b8625b003 100644 --- a/barbican/values.yaml +++ b/barbican/values.yaml @@ -33,6 +33,10 @@ upgrades: max_unavailable: 1 max_surge: 3 +pod_disruption_budget: + api: + min_available: 1 + network: api: name: "barbican-api"