The MachineHealthCheck resource resembles the following YAML file:
MachineHealthCheck
apiVersion: machine.openshift.io/v1beta1
kind: MachineHealthCheck
metadata:
name: example (1)
namespace: openshift-machine-api
spec:
selector:
matchLabels:
machine.openshift.io/cluster-api-machine-role: <role> (2)
machine.openshift.io/cluster-api-machine-type: <role> (2)
machine.openshift.io/cluster-api-machineset: <cluster_name>-<label>-<zone> (3)
unhealthyConditions:
- type: "Ready"
timeout: "300s"
- type: "Ready"
timeout: "300s"
maxUnhealthy: "40%" (4)
-
Specify the name of the MachineHealthCheck to deploy.
-
Specify a label for the machine pool that you want to check.
-
Specify the MachineSet to track in
<cluster_name>-<label>-<zone>
format. For example,prod-node-us-east-1a
. -
Specify the amount of unhealthy machines allowed in the targeted pool of machines. This can be set as a percentage or an integer.
Note
|
The |