From e4ad30a64a36903edec6f5349178d1476f1f0f67 Mon Sep 17 00:00:00 2001 From: Larry Rensing Date: Thu, 18 May 2017 19:47:29 +0000 Subject: [PATCH] Adding pod disruption budget for senlin This PS adds a default pod disruption budget for senlin-api Change-Id: I41448b9b45bbbee356839919c9dfcd9e7c3d40b7 --- senlin/templates/pdb-api.yaml | 9 +++++++++ senlin/values.yaml | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 senlin/templates/pdb-api.yaml diff --git a/senlin/templates/pdb-api.yaml b/senlin/templates/pdb-api.yaml new file mode 100644 index 0000000000..0e098bc41c --- /dev/null +++ b/senlin/templates/pdb-api.yaml @@ -0,0 +1,9 @@ +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: senlin-api +spec: + minAvailable: {{ .Values.pod_disruption_budget.api.min_available }} + selector: + matchLabels: + app: senlin-api \ No newline at end of file diff --git a/senlin/values.yaml b/senlin/values.yaml index 364f488380..b54ffb069b 100644 --- a/senlin/values.yaml +++ b/senlin/values.yaml @@ -44,6 +44,10 @@ upgrades: max_unavailable: 1 max_surge: 3 +pod_disruption_budget: + api: + min_available: 0 + keystone_secrets: admin: "senlin-env-keystone-admin" user: "senlin-env-keystone-user"