Add Health Check
Machine Healthcheck¶
To enhance your VMware environment's robustness and efficiency, delve into integrating Machine Healthchecks. Seamlessly implement health monitoring for your virtual machines, ensuring optimal performance. This healthcheck can be performed as a day 2 operation for the provisioned clusters.
Add Machine Healthcheck¶
- Select a VMWare cluster and Machine Health Check tab
- Click Add Machine Healthcheck and provide the required fields
- Enter a name for the Machine Healthcheck
- Select the Match Expressions (key, operator, and value)
- Provide the details for Unhealthy Conditions (Status, Timeout, and Type)
Upon successful addition, a display of health checks is presented, as depicted below. To edit or delete a machine healthcheck, use the respective icons
Get Machine Healthcheck¶
To retrieve a list of added Machine Health Checks for a given cluster, execute the command kubectl get mhc
, which will generate the following output
To obtain detailed descriptions of the MHCs and their associated targets, run the command kubectl describe mhc
.