Edit

opencenter cluster drift detect

Detect infrastructure drift for a cluster

Synopsis

Detect differences between desired configuration and actual infrastructure state.

This command queries cloud provider APIs to retrieve the actual state of resources (VMs, networks, security groups, load balancers) and compares them with the desired configuration. It generates a drift report showing:

  • Resource type and ID

  • Field that has drifted

  • Expected vs actual values

  • Severity (critical, warning, info)

  • Whether the drift is reconcilable

If no cluster name is provided, uses the currently active cluster.

opencenter cluster drift detect [cluster] [flags]

Examples

  # Detect drift for active cluster
  opencenter cluster drift detect

  # Detect drift for a specific cluster
  opencenter cluster drift detect my-cluster

  # Output drift report as JSON
  opencenter cluster drift detect my-cluster --output=json

  # Show only critical drift
  opencenter cluster drift detect my-cluster --severity=critical

Options

  -h, --help              help for detect
      --severity string   Filter by severity (critical, warning, info)

SEE ALSO

  • opencenter_cluster_drift.md[opencenter cluster drift] - Detect and reconcile infrastructure drift

Auto generated by spf13/cobra on 28-Apr-2026