To automatically create the number of Machine
objects that matches the number of available BareMetalHost
objects, add a metal3.io/autoscale-to-hosts
annotation to the MachineSet
object.
-
Install {op-system} bare metal compute machines for use in the cluster, and create corresponding
BareMetalHost
objects. -
Install the {product-title} CLI (
oc
). -
Log in as a user with
cluster-admin
privileges.
-
Annotate the machine set that you want to configure for automatic scaling by adding the
metal3.io/autoscale-to-hosts
annotation. Replace<machineset>
with the name of the machine set.$ oc annotate machineset <machineset> -n openshift-machine-api 'metal3.io/autoscale-to-hosts=<any_value>'
Wait for the new scaled machines to start.
Note
|
When you use a |