Viewing registered clusters

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

  1. 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 the EXTERNAL_ID column lists the clusters' UIDs of the kube-system namespace. To find your cluster's UID, use the command: kubectl get namespace kube-system -o jsonpath='{.metadata.uid}'

  2. Run the following command:

    gcloud container hub memberships describe [MEMBERSHIP_NAME]

Console

  1. Go to the GKE clusters list in the Cloud Console:

    Go to the GKE clusters page

  2. Click the name of the cluster you are interested in from the list to open its details page.

  3. Scroll down if necessary to the Features section. Registered clusters have a Fleet 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:

What's next

Logging in to a registered cluster