health nodes
command
Check the health of node resources and usage.
Prerequisites
- Log in to Red Hat® OpenShift® Container Platform as a cluster administrator.
- Verify the configuration file.Important: A Kubernetes configuration file must be at either ~/.kube/config or ~/auth/kubeconfig for this command to work. The file must have the target cluster as the current context.
Syntax and command options
The following example shows the syntax that you must use when you run the nodes
command:
guardcenter-cli health nodes \
[--save] \
[--verbose]
Configure the following command options when you run the
nodes
command:
Option | Description |
---|---|
|
Display command help.
|
--log-level |
The command log level.
|
--save |
Save the output and resource YAML files to the local file system.
|
--verbose |
Display detailed information about resources in table format.
|
Example
The following command example checks the health of the nodes and node
usage:
guardcenter-cli health nodes
The following example shows a successful output:
Health Check Report Node Healthcheck [SUCCESS...] Node Usage Healthcheck [SUCCESS...]