Adding pod disruption budget for nova

This PS adds a default pod disruption budget for nova-api-osapi
and nova-api-metadata to ensure at least one replica of each pod
is running.

Change-Id: I5ab626f24b899ed34240731bfe075be1df7228c5
This commit is contained in:
Larry Rensing 2017-05-18 17:28:39 +00:00
parent b7f22c35a7
commit 60aedd9748
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,9 @@
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: nova-api-metadata
spec:
minAvailable: {{ .Values.pod_disruption_budget.metadata.min_available }}
selector:
matchLabels:
app: nova-api-metadata

View File

@ -0,0 +1,9 @@
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: nova-api-osapi
spec:
minAvailable: {{ .Values.pod_disruption_budget.osapi.min_available }}
selector:
matchLabels:
app: nova-api-osapi

View File

@ -75,6 +75,12 @@ upgrades:
max_unavailable: 1 max_unavailable: 1
max_surge: 3 max_surge: 3
pod_disruption_budget:
metadata:
min_available: 1
osapi:
min_available: 1
bootstrap: bootstrap:
enabled: true enabled: true
flavors: flavors: