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:

  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]

View all clusters registered with a Google Cloud project

gcloud

To view registered clusters, run the following command:

gcloud container hub memberships list

Console

To view registered clusters, perform the following steps:

  1. Visit the GKE menu in the Cloud Console.

    Visit the GKE menu

  2. The list of clusters is displayed. A registered cluster has its location set to registered.

What's next

Logging in to a registered cluster