From be21e7827645a480f42d50bb8d1f33532edc7a7d Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Mon, 21 Oct 2024 09:56:52 -0500 Subject: [PATCH] feat(nova): disable flavors from bootstrap script Disabled flavors being set from the bootstrap script and document how to create them via a crossplane openstack config. --- components/nova/aio-values.yaml | 6 ++++++ docs/deploy-guide/define-flavors.md | 30 +++++++++++++++++++++++++++++ mkdocs.yml | 1 + 3 files changed, 37 insertions(+) create mode 100644 docs/deploy-guide/define-flavors.md diff --git a/components/nova/aio-values.yaml b/components/nova/aio-values.yaml index b41829b7c..3c0622666 100644 --- a/components/nova/aio-values.yaml +++ b/components/nova/aio-values.yaml @@ -45,6 +45,12 @@ conf: project_domain_name: infra project_name: baremetal +bootstrap: + # disable using the bootstrap script for flavors since it is too limited for our needs + # we'll use crossplane at this time and eventually an operator + structured: + flavors: + enabled: false console: # we are working with baremetal nodes and not QEMU so we don't need novnc or spice diff --git a/docs/deploy-guide/define-flavors.md b/docs/deploy-guide/define-flavors.md new file mode 100644 index 000000000..f87e5e167 --- /dev/null +++ b/docs/deploy-guide/define-flavors.md @@ -0,0 +1,30 @@ +# Defining OpenStack Nova Flavors + +Flavors are used to advertise to the user what hardware types are available +for consumption. Flavors must be defined and configured to map to Ironic +hardware types that are available. + +## Flavor Definition with Crossplane + +Create the following YAML to load. + +```yaml +apiVersion: compute.openstack.crossplane.io/v1alpha1 +kind: FlavorV2 +metadata: + name: gp1-small +spec: + forProvider: + name: gp1.small + vcpus: 16 + ram: 98304 + disk: 480 + isPublic: true + extraSpecs: + 'resources:CUSTOM_BAREMETAL_GP1SMALL': '1' + 'resources:DISK_GB': '0' + 'resources:MEMORY_MB': '0' + 'resources:VCPU': '0' + providerConfigRef: + name: provider-openstack-config +``` diff --git a/mkdocs.yml b/mkdocs.yml index 3765eb248..ff43ff277 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -118,6 +118,7 @@ nav: - deploy-guide/extra-regions.md - deploy-guide/external-argocd.md - deploy-guide/add-remove-app.md + - deploy-guide/define-flavors.md - 'User Guide': - user-guide/index.md - user-guide/openstack-cli.md