Avant de commencer à utiliser Cloud Workstations, assurez-vous de disposer des autorisations requises et d'avoir effectué les étapes de configuration obligatoires.
Vous pouvez ignorer cette section si vous avez déjà effectué cette configuration.
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Assurez-vous de disposer du rôle IAM Administrateur Cloud Workstations sur le projet afin de pouvoir créer des configurations de stations de travail.
Pour vérifier vos rôles IAM dans la console Google Cloud , accédez à la page IAM :
Cloud Workstations sont hébergés sur des VM démarrées à partir des images publiques Container-Optimized OS (COS) préconfigurées de Compute Engine. Si la contrainte de règle d'administration constraints/compute.trustedimageProjects est appliquée, vous devez définir des contraintes d'accès aux images pour autoriser les utilisateurs à créer des disques de démarrage à partir de projects/cos-cloud ou de toutes les images publiques.
Facultatif : Activez l'API Container File System pour accélérer le démarrage de la station de travail.
Les clusters de stations de travail définissent un groupe de stations de travail dans une région spécifique, gèrent les stations de travail pendant leur cycle de vie et fournissent une connectivité réseau configurable.
Les clusters de stations de travail ne sont pas liés aux clusters Google Kubernetes Engine (GKE).
Pour créer un cluster de stations de travail, procédez comme suit :
Dans la console, accédez à la page Cloud Workstations>Gestion des clusters.
Sur la page Gestion du cluster des stations de travail, cliquez sur add_boxCréer.
Dans le champ Nom, saisissez le nom de votre cluster de stations de travail.
Choisissez la région la plus proche de vous.
Facultatif : Pour créer vos postes de travail dans un VPC, développez la section Paramètres réseau et sélectionnez votre réseau personnalisé.
Dans le champ Réseau, saisissez le nom de votre réseau (par exemple, test-network).
Dans le champ Sous-réseau, saisissez le nom de votre sous-réseau (par exemple, test-subnetwork).
Dans la section Type de passerelle, sélectionnez Passerelle publique ou Passerelle privée.
Pour rendre vos stations de travail accessibles depuis des réseaux publics, sélectionnez Passerelle publique.
Si vous avez besoin de la résidence des données pour les données en transit, sélectionnez Passerelle privée.
Pour autoriser le trafic d'entrée et de sortie vers le service des stations de travail à partir du réseau sélectionné, sélectionnez Passerelle privée.
Pour en savoir plus sur la création de clusters privés, consultez Configurer VPC Service Controls et les clusters privés.
Cliquez sur Créer pour lancer le processus de création du cluster.
La création d'un cluster de station de travail peut prendre jusqu'à 20 minutes, mais dans la plupart des cas, cette opération n'est nécessaire qu'une seule fois.
Effectuer un nettoyage
Pour supprimer un cluster de stations de travail depuis la console Google Cloud :
Dans la console Google Cloud , accédez à Cloud Workstations > Clusters.
Cochez la case à côté du cluster que vous souhaitez supprimer.
Cliquez sur le menu d'options more_vertPlus, puis sélectionnez Supprimer pour supprimer le cluster de stations de travail sélectionné.
Pour en savoir plus sur la suppression des stations de travail, des configurations de stations de travail et des projets Google Cloud , consultez Supprimer des ressources.
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,["# Create a workstation cluster\n\nLearn how to get started creating a workstation cluster with Cloud Workstations.\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nTo follow step-by-step guidance for this task directly in the\nGoogle Cloud console, click **Guide me**:\n\n[Guide me](https://console.cloud.google.com/freetrial?redirectPath=/?walkthrough_id=workstations--create-cluster)\n\n*** ** * ** ***\n\nBefore you begin\n----------------\n\nBefore you begin using Cloud Workstations, be sure that you have the\n[required permissions](/workstations/docs/access-control#enable_required_roles)\nand that you complete these required setup steps.\nYou can skip this section if you've already completed this setup.\n\nSign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n\nIn the Google Cloud console, on the project selector page,\nselect or create a Google Cloud project.\n| **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n[Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n\n\n[Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n\nEnable the Cloud Workstations API.\n\n\n[Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=workstations.googleapis.com) \nIn the Google Cloud console, on the project selector page,\nselect or create a Google Cloud project.\n| **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n[Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n\n\n[Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n\nEnable the Cloud Workstations API.\n\n\n[Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=workstations.googleapis.com)\n1.\n\n\n Enable the Cloud Workstations API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=workstations.googleapis.com)\n2. Make sure that you have a Cloud Workstations Admin IAM role on the\n project so that you can create workstation configurations.\n To check your IAM roles in the Google Cloud console, go to the\n **IAM** page:\n\n [Go to IAM](https://console.cloud.google.com/iam-admin/iam)\n3. Cloud Workstations are hosted on VMs booted from Compute Engine's preconfigured public [Container-Optimized OS (COS)](/compute/docs/images/os-details#container-optimized_os_cos) images. If the `constraints/compute.trustedimageProjects` organization policy constraint is enforced, you must [set image access constraints](/compute/docs/images/restricting-image-access#trusted_images) to allow users to create boot disks from `projects/cos-cloud` or all public images.\n4. **Optional:** Enable the Container File System API to allow faster workstation startup.\n\n\n [Enable the Container File System API](https://console.cloud.google.com/apis/library/containerfilesystem.googleapis.com?q=container%20file%20system)\n\n \u003cbr /\u003e\n\n For more information, see\n [Reduce workstation startup time with\n Image streaming](/workstations/docs/architecture#image-streaming).\n\nCreate your workstation cluster\n-------------------------------\n\nWorkstation clusters define a group of workstations in a particular region,\nmanage workstations during their lifecycle, and provide configurable\nnetwork connectivity.\n\nWorkstation clusters aren't related to Google Kubernetes Engine (GKE) clusters.\n\nTo create a workstation cluster, follow these steps:\n\n1. In the console,\n navigate to the **Cloud Workstations** \\\u003e\n **Cluster management** page.\n\n\n [Go to Cluster management](https://console.cloud.google.com/workstations/clusters)\n\n \u003cbr /\u003e\n\n2. From the workstations **Cluster management** page, click\n add_box**Create**.\n\n3. In the **Name** field, enter a name for your workstation cluster.\n\n4. Select the **Region** that is closest to you.\n\n5. Optional: To create your workstations inside a\n [VPC](/vpc/docs/vpc),\n expand the **Network settings** section and select your custom network.\n\n 1. In the **Network** field, enter the name for your network---for example,\n `test-network`.\n\n 2. In the **Subnetwork** field, enter the name for your subnetwork---for\n example, `test-subnetwork`.\n\n 3. In the **Gateway type** section, select **Public gateway** or\n **Private gateway**.\n\n - To make your workstations accessible from public networks, select\n **Public gateway**.\n\n - If you require [data residency](/assured-workloads/docs/data-residency)\n for data in transit, select **Private gateway**.\n\n - To allow ingress and egress to the workstations service from inside\n the selected network, select **Private gateway** .\n For more information about creating a private clusters, see\n [Configure VPC Service Controls and private clusters](/workstations/docs/configure-vpc-service-controls-private-clusters)\n\n6. Click **Create**, which begins the cluster creation process.\n\nWorkstation cluster creation can take up to 20 minutes, but in most\ncases is only needed once.\n\n\nClean up\n--------\n\nTo delete a workstation cluster from the Google Cloud console:\n\n1. In the Google Cloud console, go to **Cloud Workstations \\\u003e Clusters**.\n2. Select the checkbox beside the cluster that you want to delete.\n3. Click themore_vert**More** options menu and select **Delete** to delete the selected workstation cluster.\n\nFor more about deleting workstations, workstation configurations, and Google Cloud projects, see [Delete resources](/workstations/docs/delete-resources).\n\n\u003cbr /\u003e\n\nWhat's next\n-----------\n\n- Learn more about configuring options in your\n [workstation configuration](/workstations/docs/create-configuration).\n\n- Use the\n [Cloud Workstations base editor](/workstations/docs/base-editor-overview)."]]