/
How to trace cluster name from registration link

How to trace cluster name from registration link

Quick way to trace back deployed and imported clusters:

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:

  • resulting url:

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

Clusters which are in pending status and weren't imported yet:

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:

Related content

Synergy Office Add-ins (MacOS & Web Plugins): Deployment Guide
Synergy Office Add-ins (MacOS & Web Plugins): Deployment Guide
Read with this
Installation - Upgrade K3s - Focus
Installation - Upgrade K3s - Focus
More like this
Install Synergy/Focus/Enterprise using Rancher
Install Synergy/Focus/Enterprise using Rancher
Read with this
Redeploy Cluster-cattle-agent pod
Redeploy Cluster-cattle-agent pod
More like this
Register a Customer in Rancher without a Licensing Portal – Reseller
Register a Customer in Rancher without a Licensing Portal – Reseller
Read with this
Air Gap Installation
Air Gap Installation
Read with this

Classified as Getvisibility - Partner/Customer Confidential