diff --git a/nova/templates/pdb-metadata.yaml b/nova/templates/pdb-metadata.yaml new file mode 100644 index 0000000000..7dc22ea9ab --- /dev/null +++ b/nova/templates/pdb-metadata.yaml @@ -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 \ No newline at end of file diff --git a/nova/templates/pdb-osapi.yaml b/nova/templates/pdb-osapi.yaml new file mode 100644 index 0000000000..77f9ca3559 --- /dev/null +++ b/nova/templates/pdb-osapi.yaml @@ -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 \ No newline at end of file diff --git a/nova/values.yaml b/nova/values.yaml index b8a9ec700b..f315997b15 100644 --- a/nova/values.yaml +++ b/nova/values.yaml @@ -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: