From 3d9b17cd8e6bbc6fc2d1f8e32f0ed43028f360b4 Mon Sep 17 00:00:00 2001 From: Larry Rensing Date: Thu, 18 May 2017 16:33:29 +0000 Subject: [PATCH] Adding pod disruption budgets for heat This PS adds a pod disruption budget for heat api, cfn, cloudwatch, and engine to ensure 1 replica of each pod is running. Change-Id: I8f5f224be7e804155390e18aa56dd86331f3645c --- heat/templates/pdb-api.yaml | 9 +++++++++ heat/templates/pdb-cfn.yaml | 9 +++++++++ heat/templates/pdb-cloudwatch.yaml | 9 +++++++++ heat/values.yaml | 8 ++++++++ 4 files changed, 35 insertions(+) create mode 100644 heat/templates/pdb-api.yaml create mode 100644 heat/templates/pdb-cfn.yaml create mode 100644 heat/templates/pdb-cloudwatch.yaml diff --git a/heat/templates/pdb-api.yaml b/heat/templates/pdb-api.yaml new file mode 100644 index 0000000000..6370f46bac --- /dev/null +++ b/heat/templates/pdb-api.yaml @@ -0,0 +1,9 @@ +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: heat-api +spec: + minAvailable: {{ .Values.pod_disruption_budget.api.min_available }} + selector: + matchLabels: + app: heat-api \ No newline at end of file diff --git a/heat/templates/pdb-cfn.yaml b/heat/templates/pdb-cfn.yaml new file mode 100644 index 0000000000..8d5c8699fb --- /dev/null +++ b/heat/templates/pdb-cfn.yaml @@ -0,0 +1,9 @@ +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: heat-cfn +spec: + minAvailable: {{ .Values.pod_disruption_budget.cfn.min_available }} + selector: + matchLabels: + app: heat-cfn \ No newline at end of file diff --git a/heat/templates/pdb-cloudwatch.yaml b/heat/templates/pdb-cloudwatch.yaml new file mode 100644 index 0000000000..39906dbb6f --- /dev/null +++ b/heat/templates/pdb-cloudwatch.yaml @@ -0,0 +1,9 @@ +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: heat-cloudwatch +spec: + minAvailable: {{ .Values.pod_disruption_budget.cloudwatch.min_available }} + selector: + matchLabels: + app: heat-cloudwatch \ No newline at end of file diff --git a/heat/values.yaml b/heat/values.yaml index 26667ef105..ef6edba798 100644 --- a/heat/values.yaml +++ b/heat/values.yaml @@ -48,6 +48,14 @@ upgrades: max_unavailable: 1 max_surge: 3 +pod_disruption_budget: + api: + min_available: 1 + cfn: + min_available: 1 + cloudwatch: + min_available: 1 + keystone_secrets: admin: "heat-env-keystone-admin" user: "heat-env-keystone-user"