AutoScale From Zero
Note: AutoScaleFromZero is available in >= 0.14.
Note: AutoScaleFromZero can be used only in clusters using the ClusterClass feature.
The AutoScaleFromZero feature flag enables the usage of cluster-autoscaler to scale from/to zero without the need of annotations. More information on how to use the cluster-autoscaler can be found here.
Enabling AutoScaleFromZero
You can enable AutoScaleFromZero using the following.
- Environment variable:
EXP_CAPO_AUTOSCALE_FROM_ZERO=true - clusterctl.yaml variable:
EXP_CAPO_AUTOSCALE_FROM_ZERO: true - –feature-gates argument:
AutoScaleFromZero=true
Automatically Populated Status Fields
Note: Unsupported fields may be provided via annotations or incorporated into the controller by extending its functionality.
The controller automatically fills two sections of OpenStackMachineTemplate.Status:
- capacity (resource quantities)
- nodeInfo (OS metadata)
The following mappings describe exactly where each value originates.
Capacity (Status.Capacity)
-
CPU: From the
VCPUsproperty of the resolved OpenStack flavor -
Memory: From the
RAMproperty of the resolved OpenStack flavor -
Ephemeral Storage: From the
Ephemeralproperty of the resolved OpenStack flavor -
Root Storage: Determined based on the boot method:
- If booting from volume taken from
OpenStackMachineTemplate.Spec.Template.Spec.RootVolume.SizeGiB - If booting from image taken from the
Diskproperty of the resolved OpenStack flavor
- If booting from volume taken from
Node Information (Status.NodeInfo)
- Operating System: From the
os_typeproperty of the resolved OpenStack image.