// Module included in the following assemblies:
//
// * hosted_control_planes/hcp-manage/hcp-manage-bm.adoc
// * hosted_control_planes/hcp-manage/hcp-manage-non-bm.adoc

ifeval::["{context}" == "hcp-manage-non-bm"]
:non-bm:
endif::[]

:_mod-docs-content-type: PROCEDURE
[id="hcp-bm-machine-health-disable_{context}"]
ifndef::non-bm[]
= Disabling machine health checks on bare metal

endif::non-bm[]

ifdef::non-bm[]
= Disabling machine health checks on non-bare-metal agent machines

endif::non-bm[]

[role="_abstract"]
To disable machine health checks for the managed cluster nodes, modify the `NodePool` resource.

.Procedure

. Disable machine health checks by setting the `spec.management.autoRepair` field to `false` in the `NodePool` resource. Run the following command:
+
[source,terminal]
----
$ oc patch nodepool -n <hosted_cluster_namespace> <nodepool_name> -p '{"spec": {"management": {"autoRepair":false}}}' --type=merge
----

. Verify that the `NodePool` resource is updated with the `autoRepair: false` value by running the following command:
+
[source,terminal]
----
$ oc get nodepool -n <hosted_cluster_namespace> <nodepool_name> -o yaml | grep autoRepair
----

ifeval::["{context}" == "hcp-manage-non-bm"]
:!non-bm:
endif::[]
