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
This commit is contained in:
Larry Rensing 2017-05-18 16:33:29 +00:00
parent b7f22c35a7
commit 3d9b17cd8e
4 changed files with 35 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"