-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters