Visualizzare lo stato dell'abbonamento al parco risorse
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina mostra come ottenere lo stato di appartenenza al parco risorse dei tuoi cluster, tra cui l'elenco di tutti i membri del parco risorse e i dettagli dell'appartenenza, ad esempio il nome dell'appartenenza del cluster o se è attiva l'identità per carichi di lavoro del parco risorse. Puoi utilizzare queste informazioni per verificare di aver registrato correttamente un cluster o per eseguire altre attività a livello di parco risorse.
Puoi visualizzare i cluster che sono stati registrati correttamente utilizzando gcloud CLI o la consoleGoogle Cloud . Alcuni dettagli aggiuntivi sullo stato sono disponibili solo utilizzando l'interfaccia a riga di comando gcloud.
Console
Ruoli obbligatori
Assicurati di disporre delle autorizzazioni minime per visualizzare i cluster del parco risorse nella Google Cloud console.
Lo stato di registrazione del parco risorse di un cluster viene mostrato nelle seguenti pagine:
La pagina dei cluster GKE mostra il nome del parco risorse nella colonna Parco risorse dell'elenco dei cluster.
La pagina dei dettagli del cluster GKE mostra il nome univoco dell'appartenenza del cluster nel campo Adesione all'hub GKE.
Se hai workload in esecuzione nel cluster, il nome del parco risorse viene visualizzato anche nella pagina dei workload GKE, nella colonna Parco risorse dell'elenco dei workload.
I seguenti comandi forniscono informazioni sui membri del parco:
Elenca tutti i cluster registrati in un progetto:
gcloud container fleet memberships list \
--project=PROJECT_ID
Nell'output del comando, la colonna Name elenca i nomi di appartenenza dei cluster registrati. Il nome dell'appartenenza potrebbe essere uguale al nome del cluster, a seconda del nome dell'appartenenza scelto al momento della registrazione del cluster. La colonna EXTERNAL_ID elenca gli UID dei cluster nello spazio dei nomi kube-system. Puoi trovare l'UID di un cluster con il seguente comando:
kubectl get namespace kube-system -o jsonpath='{.metadata.uid}'
Visualizza i dettagli dell'appartenenza al parco risorse di un cluster:
Questo comando restituisce i dettagli completi dell'appartenenza al parco risorse del cluster, incluso il momento in cui è stato registrato e se è attivata la funzionalità Workload Identity del parco risorse.
Passaggi successivi
Scopri di più su come utilizzare e connetterti ai cluster di parchi risorse nelle seguenti guide:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-01 UTC."],[],[],null,["This page shows you how to get the fleet membership status of your clusters, including listing all your fleet members, and getting membership details such as the cluster's [membership name](/kubernetes-engine/fleet-management/docs/fleet-creation#about_fleet_membership) or if it has [fleet Workload Identity](/kubernetes-engine/fleet-management/docs/use-workload-identity) enabled. You can use this information to validate that you have successfully registered a cluster, or to perform other fleet-level tasks.\n\nYou can view clusters that have been successfully registered by using the gcloud CLI or the\nGoogle Cloud console. Some additional status details are available only by using the gcloud CLI. \n\nConsole\n\nRequired roles\n\nEnsure you have the [minimum permissions](/kubernetes-engine/fleet-management/docs/console) to view fleet clusters in the Google Cloud console.\n\nA cluster's fleet registration status is shown in the following pages:\n\n- The GKE clusters page displays the fleet name in the cluster list's **Fleet** column.\n\n [Go to Kubernetes clusters](https://console.cloud.google.com/kubernetes/list)\n- The GKE cluster details page shows the cluster's [unique membership name](/kubernetes-engine/fleet-management/docs/fleet-creation#about_fleet_membership) in the **GKE Hub Membership** field.\n\n- If you have running workloads on the cluster, the fleet name is also displayed on the GKE workloads page, in the workload list's **Fleet** column.\n\n [Go to Workloads](https://console.cloud.google.com/kubernetes/workload/overview)\n\ngcloud\n\nThe following commands provide information about fleet members:\n\n- List all registered clusters in a project:\n\n gcloud container fleet memberships list \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e\n\n In the command output, the `Name` column lists the [membership names](/kubernetes-engine/fleet-management/docs/fleet-creation#about_fleet_membership) of\n registered clusters. The membership name might be the same as the\n cluster name depending on the membership name that was chosen when\n the cluster was registered. The `EXTERNAL_ID` column lists the\n clusters' UIDs in the `kube-system` namespace. You can find a cluster's\n UID with the following command:\n `kubectl get namespace kube-system -o jsonpath='{.metadata.uid}'`\n\n \u003cbr /\u003e\n\n | **Note:** Depending on the version, admin clusters in Google Distributed Cloud deployments on VMware might not be in the command output. If you don't know the membership name of the admin cluster, run the following command on your admin workstation to get the membership name: `kubectl describe membership membership --kubeconfig `\u003cvar translate=\"no\"\u003eADMIN_CLUSTER_KUBECONFIG\u003c/var\u003e\n- View fleet membership details about a cluster:\n\n gcloud container fleet memberships describe \u003cvar translate=\"no\"\u003eMEMBERSHIP_NAME\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e\n\n This command returns complete details of your cluster's fleet membership, including when it was registered and if it has [fleet Workload Identity](/kubernetes-engine/fleet-management/docs/use-workload-identity) enabled.\n\nWhat's next\n\nLearn more about working with, and connecting to fleet clusters in the following guides:\n\n- [Manage identity for authenticating to clusters](/kubernetes-engine/fleet-management/docs/secure#manage_identity)\n- [Work with fleet clusters from the Google Cloud console](/kubernetes-engine/fleet-management/docs/console)\n- [Work with fleet clusters from the command line](/kubernetes-engine/fleet-management/docs/command-line)"]]