Create a machine health check resource
You can create a MachineHealthCheck resource to monitor and automatically remediate unhealthy machines in a machine set.
|
|
You can only apply a machine health check to machines that are managed by compute machine sets or control plane machine sets. |
Prerequisites
-
Install the
occommand-line interface.
Procedure
-
Create a
healthcheck.ymlfile that contains the definition of your machine health check. -
Apply the
healthcheck.ymlfile to your cluster:$ oc apply -f healthcheck.yml