Skip to content

cub cluster list

cub cluster list

List the clusters this machine manages, and the current organization's

Synopsis

Lists cub-managed clusters from two inventories:

  • This machine's: every cluster with a kubeconfig at /clusters/.kubeconfig, written by cub cluster up or cub cluster attach, whichever ConfigHub it is wired to. The record beside the kubeconfig names the server and organization; CONTEXT shows the cub context for it, starred when it is the current one.
  • The current context's organization's: every cluster Space there (Labels."confighub.com/cluster"=true). An attached cluster is listed for everyone in the organization; a kind cluster only on the machine that created it, since nothing else can reach it.

A cluster in both shows once. STATUS reports drift for clusters in the current context — a kind cluster that is gone, a kubeconfig with nothing behind it — and says "other context" for the rest, which are not checked here.

A cluster with a kubeconfig but no record is from before records existed; the first time this finds its Space in the current context it writes the record, so the migration needs nothing run by hand.

cub cluster list [flags]

Options

  -h, --help   help for list

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output

SEE ALSO

  • cub cluster - Manage clusters wired into ConfigHub via Argo CD, Sveltos or Flux