Skip to content

cub cluster open

cub cluster open

Open a cluster's Argo CD UI in the browser

Synopsis

Open the Argo CD admin UI of a cub-managed cluster, log-in credentials in hand: the admin password is copied to your clipboard so you can paste it into Argo's login form instead of digging it out of the cluster.

The cluster name may be given as an argument or with --name, and can be omitted when this host has exactly one cub-managed cluster. cub cluster list shows the names and Argo endpoints of all of them.

The endpoint and password come from the cluster's env file (/clusters/.env, written by cub cluster up); if that file is gone, the endpoint is read from the cluster's ConfigHub Space annotations and the password from the argocd-initial-admin-secret in the live cluster. If no password can be found — an admin who changes it deletes that Secret — the UI is still opened and only the username is reported.

Examples:

  # Open the Argo CD UI of the only cluster on this host
  cub cluster open

  # Open a specific cluster's Argo CD UI
  cub cluster open my-cluster
  cub cluster open --name my-cluster

  # Print the admin password instead of copying it to the clipboard
  cub cluster open my-cluster --print-password

  # Print the Argo CD URL instead of opening a browser
  cub cluster open my-cluster --print-url
cub cluster open [<cluster-name>] [flags]

Options

  -h, --help             help for open
      --name string      cluster name (may also be given as a positional argument)
      --print-password   print the admin password to the terminal instead of copying it to the clipboard
      --print-url        Print the URL instead of opening a browser

Options inherited from parent commands

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

SEE ALSO

  • cub cluster - Manage local kind clusters wired into ConfigHub