mirror of
https://github.com/optim-enterprises-bv/openstack-helm.git
synced 2025-12-26 17:57:34 +00:00
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:
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:
|
||||
|
||||
Reference in New Issue
Block a user