Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

We can use registration url, extract internal cluster identifier from it and compose link to cluster's dashboard where we can find cluster name.

  • Extract url from registration command:

kubectl apply -f https://rancher.forcepointapac.k3s.getvisibility.com/v3/import/vcd........chh_c-m-nb9rw4dr.yaml
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Locate internal cluster name in url:

https://rancher.forcepointapac.k3s.getvisibility.com/v3/import/vcd........chh_c-m-nb9rw4dr.yaml
                                                                              ^^^^^^^^^^^^
                                                                              ^machine readable internal clusterName
  • extracted internal cluster identifier:

clusterName = c-m-nb9rw4dr

Once we have internal cluster name we can use it to directly open dash board of given cluster which will display cluster name

  • cluster dashboard url:

https://rancher.forcepointapac.k3s.getvisibility.com/dashboard/c/<clusterName>/explorer#cluster-metrics
                                                                 ^^^^^^^^^^^^^
                                                                 ^replace this
  • resulting url:

https://rancher.forcepointapac.k3s.getvisibility.com/dashboard/c/c-m-nb9rw4dr/explorer#cluster-metrics
                                                                 ^^^^^^^^^^^^

When we access this url in browser we can see cluster’s dashboard:

In case cluster never connected to rancher, above method won't work because dashboard isn't available yet. To trace back this we need to download configuration of all existing clusters and find cluster_name in those.

  1. Got to → Cluster management

  2. Select all clusters by ticking checkbox in column "State"

  3. Click "Download YAML"

  4. Decompress downloaded file and search for our cluster_name using grep:

  • No labels