You can edit the HostFirmwareSettings
of provisioned hosts.
Important
|
You can only edit hosts when they are in the |
-
Get the list of
HostFirmwareSettings
resources:$ oc get hfs -n openshift-machine-api
-
Edit a host’s
HostFirmwareSettings
resource:$ oc edit hfs <host_name> -n openshift-machine-api
Where
<host_name>
is the name of a provisioned host. TheHostFirmwareSettings
resource will open in the default editor for your terminal. -
Add name/value pairs to the
spec.settings
section:Examplespec: settings: name: value (1)
-
Use the
FirmwareSchema
resource to identify the available settings for the host. You cannot set values that are read-only.
-
-
Save the changes and exit the editor.
-
Get the host’s machine name:
$ oc get bmh <host_name> -n openshift-machine name
Where
<host_name>
is the name of the host. The machine name appears under theCONSUMER
field. -
Annotate the machine to delete it from the machineset:
$ oc annotate machine <machine_name> machine.openshift.io/cluster-api-delete-machine=yes -n openshift-machine-api
Where
<machine_name>
is the name of the machine to delete. -
Get a list of nodes and count the number of worker nodes:
$ oc get nodes
-
Get the machineset:
$ oc get machinesets -n openshift-machine-api
-
Scale the machineset:
$ oc scale machineset <machineset_name> -n openshift-machine-api --replicas=<n-1>
Where
<machineset_name>
is the name of the machineset and<n-1>
is the decremented number of worker nodes. -
When the host enters the
Available
state, scale up the machineset to make theHostFirmwareSettings
resource changes take effect:$ oc scale machineset <machineset_name> -n openshift-machine-api --replicas=<n>
Where
<machineset_name>
is the name of the machineset and<n>
is the number of worker nodes.