mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
// This is included in the following assemblies:
|
|
//
|
|
// * installing/installing_bare_metal/bare-metal-postinstallation-configuration.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="bmo-setting-the-hostupdatepolicy-resource_{context}"]
|
|
= Setting the HostUpdatePolicy resource
|
|
|
|
[role="_abstract"]
|
|
By default, the `HostUpdatePolicy` disables live updates. To enable live updates, create the `HostUpdatePolicy` resource.
|
|
|
|
[WARNING]
|
|
====
|
|
Performing a live update to the `HostUpdatePolicy` resource can be a destructive and destabilizing action. Perform these updates only after careful consideration.
|
|
|
|
Before you apply a live update in a production cluster, validate the update in a development or test cluster. Ensure that these updates comply with your organization's test policies before you apply them to a production cluster.
|
|
|
|
If a cluster has fewer than three compute nodes, use caution. Firmware updates in such clusters can result in the cluster entering a degraded state.
|
|
|
|
Do not interrupt firmware updates. If the update stops responding, engage the support of your hardware vendor.
|
|
====
|
|
|
|
.Procedure
|
|
|
|
. Create the `HostUpdatePolicy` resource by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ vim hup.yaml
|
|
----
|
|
+
|
|
You can use any text editor you prefer.
|
|
+
|
|
.Example HostUpdatePolicy resource
|
|
[source,yaml]
|
|
----
|
|
apiVersion: metal3.io/v1alpha1
|
|
kind: HostUpdatePolicy
|
|
metadata:
|
|
name: <hostname>
|
|
namespace: openshift-machine-api
|
|
spec:
|
|
firmwareSettings: onReboot
|
|
firmwareUpdates: onReboot
|
|
----
|
|
+
|
|
|
|
Replace `<hostname>` with the name of the host.
|
|
|
|
. Save the changes to the `hup.yaml` file.
|
|
|
|
. Apply the policy by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc apply -f hup.yaml
|
|
----
|