Skip to content

Commit

Permalink
feat(nova): disable flavors from bootstrap script
Browse files Browse the repository at this point in the history
Disabled flavors being set from the bootstrap script and document how to
create them via a crossplane openstack config.
  • Loading branch information
cardoe committed Oct 23, 2024
1 parent 6440da7 commit be21e78
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/nova/aio-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 30 additions & 0 deletions docs/deploy-guide/define-flavors.md
Original file line number Diff line number Diff line change
@@ -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
```
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be21e78

Please sign in to comment.