Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Cette page explique comment afficher des informations sur un pool de nœuds de calcul et comment supprimer des pools de nœuds de calcul.
Rôles requis
Pour obtenir les autorisations nécessaires pour gérer les pools de nœuds de calcul et les révisions de pools de nœuds de calcul Cloud Run, demandez à votre administrateur de vous accorder le rôle IAM Développeur Cloud Run (roles/run.developer) sur votre pool de nœuds de calcul Cloud Run.
Cloud Run crée un pool de nœuds de calcul la première fois que vous déployez une image de conteneur. Pour obtenir plus d'instructions, consultez Déployer un nouveau pool de nœuds de calcul.
Afficher la liste des pools de nœuds de calcul dans votre projet
Utilisez la console Google Cloud ou la Google Cloud CLI pour afficher la liste des pools de nœuds de calcul disponibles dans votre projet :
Console
Dans la console Google Cloud , accédez à Cloud Run :
WORKER_POOL par le nom du pool de nœuds de calcul.
REGION par la Google Cloud région du pool de nœuds de calcul.
Désactiver un pool de nœuds de calcul existant
La désactivation d'un pool de nœuds de calcul arrête toutes les instances de ce pool. Pour désactiver un pool de nœuds de calcul, définissez le scaling sur zéro :
Console
Dans la console Google Cloud , accédez à Cloud Run :
Sélectionnez Pools de workers dans le menu, puis, dans la liste des pools de workers, cliquez sur celui que vous souhaitez désactiver.
Cliquez sur l'icône en forme de stylo à droite de Scaling: Manual (Instances: ) (Mise à l'échelle : manuelle (instances :)) et remplacez la valeur par 0.
Cliquez sur Enregistrer pour mettre à jour et désactiver le pool de nœuds de calcul.
Remplacez WORKER_POOL par le nom de votre pool de nœuds de calcul.
Supprimer des pools de nœuds de calcul existants
Les points suivants doivent être pris en compte lors de la suppression d'un pool de nœuds de calcul :
La suppression d'un pool de nœuds de calcul supprime toutes les ressources associées à ce pool, y compris toutes les révisions de ce pool, qu'elles traitent des charges de travail ou non.
La suppression d'un pool de nœuds de calcul ne supprime pas automatiquement les images de conteneurs d'Artifact Registry.
Pour supprimer de Artifact Registry les images de conteneur utilisées par des révisions supprimées, consultez Supprimer des images.
Une fois que vous avez supprimé un pool de nœuds de calcul, celui-ci reste visible dans la Google Cloud CLI jusqu'à ce que la suppression soit entièrement terminée. Toutefois, vous ne pouvez pas mettre à jour le pool de nœuds de calcul.
La suppression d'un pool de nœuds de calcul est définitive. Il n'est pas possible d'annuler ou de restaurer cette action.
Console
Dans la console Google Cloud , accédez à Cloud Run :
Sélectionnez Pools de travailleurs dans le menu, puis, dans la liste des pools de travailleurs, sélectionnez celui que vous souhaitez supprimer.
Cliquez sur Supprimer.
gcloud
Pour supprimer un pool de nœuds de calcul, utilisez la commande suivante :
gcloud beta run worker-pools delete WORKER_POOL --region REGION
Remplacez :
WORKER_POOL par le nom de votre pool de nœuds de calcul.
REGION par la Google Cloud région du pool de nœuds de calcul.
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,["# Manage worker pools\n\n| **Preview\n| --- Cloud Run worker pools**\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\nThis page describes viewing information about a worker pool, and deleting\nworker pools.\n\n### Required roles\n\n\nTo get the permissions that\nyou need to manage Cloud Run worker pools and worker pool revisions,\n\nask your administrator to grant you the\n\n\n[Cloud Run Developer](/iam/docs/roles-permissions/run#run.developer) (`roles/run.developer`)\nIAM role on your Cloud Run worker pool.\n\n\nFor a list of IAM roles and permissions that are associated with\nCloud Run, see\n[Cloud Run IAM roles](/run/docs/reference/iam/roles)\nand [Cloud Run IAM permissions](/run/docs/reference/iam/permissions).\nIf your Cloud Run worker pool interfaces with\nGoogle Cloud APIs, such as Cloud Client Libraries, see the\n[service identity configuration guide](/run/docs/configuring/workerpools/service-identity).\nFor more information about granting roles, see\n[deployment permissions](/run/docs/reference/iam/roles#additional-configuration)\nand [manage access](/iam/docs/granting-changing-revoking-access).\n\nCreate a worker pool\n--------------------\n\nCloud Run creates a new worker pool the first time you deploy a container image. See [Deploy a new worker pool](/run/docs/deploy-worker-pools#worker-pool)\nfor more instructions.\n\nView the list of worker pools in your project\n---------------------------------------------\n\nUse the Google Cloud console or the Google Cloud CLI to view a list of the\navailable worker pools in your project: \n\n### console\n\n1. In the Google Cloud console, go to Cloud Run:\n\n [Go to Cloud Run](https://console.cloud.google.com/run/worker-pools)\n2. Select **Worker pools** from the menu. The available worker pools are listed\n in the page.\n\n### gcloud\n\nTo list the worker pools in your project: \n\n gcloud beta run worker-pools list\n\nYou can filter this list by properties of the worker pool definition, such as an\n[assigned label](/run/docs/configuring/workerpools/labels#label-listing).\n\nView more details about a worker pool\n-------------------------------------\n\nUse the Google Cloud CLI to see more details about a worker pool: \n\n### console\n\n1. In the Google Cloud console, go to Cloud Run:\n\n [Go to Cloud Run](https://console.cloud.google.com/run/worker-pools)\n2. Select **Worker pools** from the menu to display the available worker pools.\n\n3. Click the worker pool to display its details pane.\n\n### gcloud\n\nTo view details about a worker pool: \n\n```bash\ngcloud beta run worker-pools describe WORKER_POOL\n```\nReplace \u003cvar translate=\"no\"\u003eWORKER_POOL\u003c/var\u003e with the name of the worker pool.\n\n\u003cbr /\u003e\n\nYou can use the [`--format` flag](/sdk/gcloud/reference#--format) to format\nthe output. For example, to format the output as YAML: \n\n```bash\ngcloud beta run worker-pools describe WORKER_POOL\n --region REGION\n --format yaml\n```\n\nReplace:\n\n- \u003cvar translate=\"no\"\u003eWORKER_POOL\u003c/var\u003e with the name of the worker pool.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e with the Google Cloud region of the worker pool.\n\nDisable an existing worker pool\n-------------------------------\n\nDisabling a worker pool shuts down all instances for that worker pool. To\ndisable a worker pool, set scaling to zero: \n\n### console\n\n1. In the Google Cloud console, go to Cloud Run:\n\n [Go to Cloud Run](https://console.cloud.google.com/run/worker-pools)\n2. Select **Worker pools** from the menu, then from the list of worker pools,\n click on the worker pool you want to disable.\n\n3. Click the pen icon at the right of **Scaling: Manual (Instances: )** and\n change the value to 0.\n\n4. Click **Save** to update and disable the worker pool.\n\n### gcloud\n\n```bash\ngcloud beta run worker-pools update WORKER_POOL --scaling=0\n```\n\nReplace \u003cvar translate=\"no\"\u003eWORKER_POOL\u003c/var\u003e with the name of your worker pool.\n\nDelete existing worker pools\n----------------------------\n\nThe following considerations apply to deleting a worker pool:\n\n- Deleting a worker pool deletes all resources related to this worker pool, including all revisions of this worker pool whether they are processing workloads or not.\n- Deleting a worker pool does not automatically remove container images from Artifact Registry. To delete container images used by the deleted revisions from Artifact Registry, refer to [Deleting images](/artifact-registry/docs/docker/manage-images#deleting_images).\n- After you delete a worker pool, the worker pool remains visible in the Google Cloud CLI until the deletion is fully complete. However, you cannot update the worker pool.\n- Deleting a worker pool is permanent. There is no undo or restore.\n\n### console\n\n1. In the Google Cloud console, go to Cloud Run:\n\n [Go to Cloud Run](https://console.cloud.google.com/run/worker-pools)\n2. Select **Worker pools** from the menu, then from the list of worker pools,\n select the worker pool you want to delete.\n\n3. Click **Delete**.\n\n### gcloud\n\nTo delete a worker pool, use the command: \n\n```\ngcloud beta run worker-pools delete WORKER_POOL --region REGION\n```\n\nReplace:\n\n- \u003cvar translate=\"no\"\u003eWORKER_POOL\u003c/var\u003e with the name of your worker pool.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e with the Google Cloud region of the worker pool."]]