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:
parent
b7f22c35a7
commit
3d9b17cd8e
9
heat/templates/pdb-api.yaml
Normal file
9
heat/templates/pdb-api.yaml
Normal 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
|
9
heat/templates/pdb-cfn.yaml
Normal file
9
heat/templates/pdb-cfn.yaml
Normal 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
|
9
heat/templates/pdb-cloudwatch.yaml
Normal file
9
heat/templates/pdb-cloudwatch.yaml
Normal 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
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user