You can edit the HostFirmwareSettings of provisioned hosts.
|
Important
|
You can only edit hosts in the |
-
Get the list of
HostFirmwareSettingsresources:$ oc get hfs -n openshift-machine-api -
Edit a host’s
HostFirmwareSettingsresource:$ oc edit hfs <host_name> -n openshift-machine-apiWhere
<host_name>is the name of a provisioned host. TheHostFirmwareSettingsresource will open in the default editor for your terminal. -
Add name/value pairs to the
spec.settingssection:Examplespec: settings: name: value (1)-
Use the
FirmwareSchemaresource 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 nameWhere
<host_name>is the name of the host. The machine name appears under theCONSUMERfield. -
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-apiWhere
<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
Availablestate, scale up the machineset to make theHostFirmwareSettingsresource 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.