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:
parent
b7f22c35a7
commit
60aedd9748
9
nova/templates/pdb-metadata.yaml
Normal file
9
nova/templates/pdb-metadata.yaml
Normal 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
|
9
nova/templates/pdb-osapi.yaml
Normal file
9
nova/templates/pdb-osapi.yaml
Normal 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
|
@ -75,6 +75,12 @@ upgrades:
|
||||
max_unavailable: 1
|
||||
max_surge: 3
|
||||
|
||||
pod_disruption_budget:
|
||||
metadata:
|
||||
min_available: 1
|
||||
osapi:
|
||||
min_available: 1
|
||||
|
||||
bootstrap:
|
||||
enabled: true
|
||||
flavors:
|
||||
|
Loading…
Reference in New Issue
Block a user