# argoctl verify cluster

Source: https://argoctl-docs.pages.dev/docs/reference/cli/verify-cluster

> Run the cluster checks (nodes, DNS, networking, network policy, LoadBalancer addresses, storage, monitoring, logs, GPUs, RDMA) without changing the cluster.

## Synopsis

```bash
sudo argoctl verify cluster <site-file> [--json] [--timeout <d>]
```

## Description

Runs the [checks](https://argoctl-docs.pages.dev/docs/reference/cli/create-cluster#checks) that end every `create cluster`, and nothing else: no playbooks, no Helm. Test pods are created in the namespaces `argoctl-verify`, `argoctl-verify-storage` and `argoctl-verify-logs` and deleted before and after (the test volume with them), so the only traces a run leaves are its log and the logs test's lines in Loki.

Use it after maintenance, after a node reboots, before deploying inference, or on a schedule as a health check. Its report also lists the alerts firing in Alertmanager at the time. It needs root on mgmt (for the SSH key) but no BMC password.

## Flags

| Flag | Default | |
|---|---|---|
| `<site-file>` | | Path to the site file. |
| `--json` | | Print the report as JSON on stdout: each check with `name`, `ok` and `detail`. |
| `--timeout <d>` | `15m` | The whole run. |

## Examples

```bash
sudo argoctl verify cluster /etc/argoctl/site.yaml
sudo argoctl verify cluster /etc/argoctl/site.yaml --json | jq -r '.checks[] | select(.ok | not) | .name'
```

## Output

```text
$ sudo argoctl verify cluster /etc/argoctl/site.yaml
==> verify cluster /etc/argoctl/site.yaml: site dc1, 3 nodes (checks only)

✓ cluster of site dc1: 17 checks passed (41s)
  API server https://172.16.2.11:6443 (control plane cp1)

  NODE  ROLE           STATUS  VERSION  ADDRESS      POD RANGE      GPUS
  cp1   control plane  Ready   v1.37.2  172.16.2.11  10.244.0.0/24  -
  gpu1  worker         Ready   v1.37.2  172.16.2.21  10.244.1.0/24  8x NVIDIA H100 80GB HBM3
  gpu2  worker         Ready   v1.37.2  172.16.2.22  10.244.2.0/24  8x NVIDIA H100 80GB HBM3

  ok     clocks synchronised (NTP)                  3 nodes synchronised
  ok     every node Ready                           3 Ready
  ...
  ok     GPUs allocatable                           gpu1 8/8, gpu2 8/8 nvidia.com/gpu
  ok     RDMA devices in pods                       gpu1 8 ports active, gpu2 8 ports active (InfiniBand, 400 Gb/s)
  Full log: /var/log/argoctl/20261130T120501Z-verify-cluster.log
```

A failing check names what's wrong and what to do:

```text
✗ cluster of site dc1: 1 of 17 checks failed (44s)
  FAIL   GPUs allocatable                           gpu1 8/8, gpu2 7/8 nvidia.com/gpu
  To fix:
    1. See why gpu2 lost a GPU: kubectl -n gpu-operator logs ds/nvidia-device-plugin-daemonset (on gpu2's pod)
    2. Look for XID errors: sudo ssh -i /var/lib/argoctl/ssh/id_ed25519 ubuntu@172.16.1.22 'sudo dmesg | grep -i xid'
  Full log: /var/log/argoctl/20261130T121012Z-verify-cluster.log
```

## Exit codes

| Code | Meaning |
|---|---|
| `0` | Every check passed. |
| `1` | A check failed, or the cluster couldn't be reached. |
| `2` | Usage error. |

## Troubleshooting

Each check's failure message carries its own **To fix** steps. See [`create cluster` troubleshooting](https://argoctl-docs.pages.dev/docs/reference/cli/create-cluster#troubleshooting) for the common causes. If the cluster can't be reached at all (`check the nodes answer SSH`), check the control plane is up and run `create cluster` again: it repairs what it can without resetting the control plane.

## Related

- [`argoctl create cluster`](https://argoctl-docs.pages.dev/docs/reference/cli/create-cluster)
