This page explains how to view clusters registered with Google Cloud. You can
view which registered clusters you have running using gcloud
or
Google Cloud Console.
To learn how to view and get information about clusters running in your project, refer to Viewing your clusters in the Google Kubernetes Engine (GKE) documentation.
Inspect a cluster's registration status
To check whether a specific cluster is registered with Google Cloud:
gcloud
Find the cluster's membership name corresponding to your cluster:
gcloud container hub memberships list
In the command output, the
Name
column lists the membership names of registered clusters, and theEXTERNAL_ID
column lists the clusters' UIDs of thekube-system
namespace. To find your cluster's UID, use the command:kubectl get namespace kube-system -o jsonpath='{.metadata.uid}'
Run the following command:
gcloud container hub memberships describe [MEMBERSHIP_NAME]
Console
Go to the GKE clusters list in the Cloud Console:
Click the name of the cluster you are interested in from the list to open its details page.
Scroll down if necessary to the Features section. Registered clusters have a GKE Hub Membership item, where the value is the cluster's membership name.
View all clusters registered with a Google Cloud project
gcloud
To view registered clusters, run the following command:
gcloud container hub memberships list
Console
Users who have the Anthos API enabled can view a list of all their project's registered clusters in the Cloud Console. To view this list:
With the project selected, visit the Anthos clusters page in the Cloud Console.
What's next
Logging in to a registered cluster