From 67cac79cc8b1fb07d34d42346ba6cf5c89dbb4c6 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Fri, 13 Sep 2024 14:07:15 -0500 Subject: [PATCH] feat: set minimal PDB for OpenStack APIs Set a minimal Pod Disruption Budget for OpenStack APIs of 1 pod as a starting point. --- components/glance/aio-values.yaml | 6 ++++++ components/ironic/aio-values.yaml | 4 ++++ components/keystone/aio-values.yaml | 4 ++++ components/neutron/aio-values.yaml | 4 ++++ components/nova/aio-values.yaml | 6 ++++++ components/placement/aio-values.yaml | 6 ++++++ 6 files changed, 30 insertions(+) diff --git a/components/glance/aio-values.yaml b/components/glance/aio-values.yaml index 4eb1d4f9..dd4c946d 100644 --- a/components/glance/aio-values.yaml +++ b/components/glance/aio-values.yaml @@ -45,6 +45,12 @@ dependencies: - glance-ks-user - glance-ks-endpoints +pod: + lifecycle: + disruption_budget: + api: + min_available: 1 + manifests: job_db_init: false job_rabbit_init: false diff --git a/components/ironic/aio-values.yaml b/components/ironic/aio-values.yaml index 0a5b4492..053d9a23 100644 --- a/components/ironic/aio-values.yaml +++ b/components/ironic/aio-values.yaml @@ -151,6 +151,10 @@ pod: - name: host-var-lib-understack hostPath: path: /var/lib/understack + lifecycle: + disruption_budget: + api: + min_available: 1 # we don't want to enable OpenStack Helm's # helm.sh/hooks because they set them as diff --git a/components/keystone/aio-values.yaml b/components/keystone/aio-values.yaml index f67ef2f4..86eecbe5 100644 --- a/components/keystone/aio-values.yaml +++ b/components/keystone/aio-values.yaml @@ -217,6 +217,10 @@ pod: - name: keystone-sso secret: secretName: keystone-sso + lifecycle: + disruption_budget: + api: + min_available: 1 conf: keystone: diff --git a/components/neutron/aio-values.yaml b/components/neutron/aio-values.yaml index dc7f0841..e4463bcf 100644 --- a/components/neutron/aio-values.yaml +++ b/components/neutron/aio-values.yaml @@ -43,6 +43,10 @@ conf: pod: use_fqdn: neutron_agent: false + lifecycle: + disruption_budget: + server: + min_available: 1 # (nicholas.kuechler) updating the jobs list to remove the 'neutron-rabbit-init' job. dependencies: diff --git a/components/nova/aio-values.yaml b/components/nova/aio-values.yaml index b2ed8692..29ed6612 100644 --- a/components/nova/aio-values.yaml +++ b/components/nova/aio-values.yaml @@ -101,6 +101,12 @@ dependencies: jobs: - nova-db-sync +pod: + lifecycle: + disruption_budget: + osapi: + min_available: 1 + manifests: job_db_init: false job_rabbit_init: false diff --git a/components/placement/aio-values.yaml b/components/placement/aio-values.yaml index 09cc077f..6bf2e946 100644 --- a/components/placement/aio-values.yaml +++ b/components/placement/aio-values.yaml @@ -17,6 +17,12 @@ dependencies: db_sync: jobs: +pod: + lifecycle: + disruption_budget: + api: + min_available: 1 + manifests: job_db_init: false