Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Dissocier un cluster signifie annuler son enregistrement dans la gestion de parc de Google Cloud et retirer le logiciel associé de votre cluster. Vous pouvez dissocier le cluster à l'aide de Google Cloud CLI ou de la console Google Cloud.
Le fait de fournir l'option facultative --ignore-errors force le cluster à se dissocier même si certaines ressources du cluster ne peuvent pas être supprimées. L'ajout de l'option --allow-missing facultative signifie que la requête de suppression renvoie un code de réussite même si le cluster est introuvable :
Sélectionnez le projet Google Cloud dans lequel se trouve le cluster.
Cliquez sur le nom du cluster que vous souhaitez dissocier, puis sélectionnez Afficher plus de détails dans le panneau latéral.
En haut de la fenêtre, cliquez sur delete
Supprimer.
Lorsque vous êtes invité à confirmer l'opération, saisissez le nom du cluster, puis cliquez sur Confirmer.
Lorsque vous dissociez un cluster, toutes les ressources Google Cloud qui lui sont associées, telles que les ressources d'appartenance au parc et les fournisseurs OIDC pour le pool d'identités de charge de travail, sont supprimées. Toutes les fonctionnalités GKE Enterprise installées dans votre cluster, telles que Config Sync et Anthos Service Mesh, sont également supprimées. Le cluster Kubernetes lui-même n'est pas supprimé.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[],[],null,["Detaching a cluster means deregistering it from Google Cloud\n[Fleet management](/anthos/fleet-management/docs) and removing the associated\nsoftware from your cluster. You can detach the cluster with the Google Cloud CLI\nor the Google Cloud console. \n\ngcloud CLI\n\nTo detach a cluster, use the\n[`gcloud container attached clusters delete` command](/sdk/gcloud/reference/container/attached/clusters/delete).\n\nProviding the optional flag `--ignore-errors` forces the cluster\nto detach even if some in-cluster resources can't be deleted. Including the\noptional `--allow-missing` flag means that the delete request returns\na success code even if the cluster can't be found:\n\n```\ngcloud container attached clusters delete CLUSTER_NAME \\\n --ignore-errors \\\n --allow-missing \\\n --location=GOOGLE_CLOUD_REGION\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e: the name of your cluster\n- \u003cvar translate=\"no\"\u003eGOOGLE_CLOUD_REGION\u003c/var\u003e: the name of the Google Cloud region administering your cluster\n\nFor more information, see\n[gcloud container attached clusters delete](/sdk/gcloud/reference/container/attached/clusters/delete).\n\nConsole\n\n\n| **Preview**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\n\u003cbr /\u003e\n\n1. In the Google Cloud console, go to the **Google Kubernetes Engine clusters\n overview** page.\n\n [Go to GKE clusters](https://console.cloud.google.com/kubernetes/list/overview)\n2. Select the Google Cloud project that the cluster is in.\n\n3. Click the name of the cluster you want to detach, and then select\n **View more details** in the side panel.\n\n4. Near the top of the window, click delete **Delete**.\n\n5. When prompted to confirm, enter the name of the cluster and\n click **Confirm**.\n\nWhen you detach a cluster, all Google Cloud resources related to the cluster,\nsuch as the fleet membership resources and workload identity pool OIDC\nproviders are deleted. Any features installed in\nyour cluster, such as Config Sync and Cloud Service Mesh, are also deleted. The\nKubernetes cluster itself isn't deleted."]]