From 76cdacbecd5443f457b2deba2f020073e3675c98 Mon Sep 17 00:00:00 2001 From: Larry Rensing Date: Thu, 18 May 2017 17:03:03 +0000 Subject: [PATCH] Adding pod disruption budget for magnum This PS adds a default pod disruption budget for magnum-api to ensure at least one replica is running. Change-Id: Idaff44d28960f4fe62a911758d3d75de1ad2cb85 --- magnum/templates/pdb-api.yaml | 9 +++++++++ magnum/values.yaml | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 magnum/templates/pdb-api.yaml diff --git a/magnum/templates/pdb-api.yaml b/magnum/templates/pdb-api.yaml new file mode 100644 index 0000000000..f2a6ef8d6d --- /dev/null +++ b/magnum/templates/pdb-api.yaml @@ -0,0 +1,9 @@ +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: magnum-api +spec: + minAvailable: {{ .Values.pod_disruption_budget.api.min_available }} + selector: + matchLabels: + app: magnum-api \ No newline at end of file diff --git a/magnum/values.yaml b/magnum/values.yaml index 1fa8b85827..5ec6fcdde0 100644 --- a/magnum/values.yaml +++ b/magnum/values.yaml @@ -44,6 +44,10 @@ upgrades: max_unavailable: 1 max_surge: 3 +pod_disruption_budget: + api: + min_available: 1 + keystone_secrets: admin: "magnum-env-keystone-admin" user: "magnum-env-keystone-user"