Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Google Distributed Cloud Air-Gapped bietet einen verwalteten Kubernetes-Dienst mit der Google Kubernetes Engine (GKE) Enterprise Edition, mit dem Sie Containerarbeitslasten mit Kubernetes-Methoden nach Industriestandard bereitstellen und ausführen können. Ihre GDC Sandbox-Instanz enthält drei Cluster, die für Sie erstellt wurden:
Ein Organisationsinfrastrukturcluster, der als Steuerungsebene für Ihre Instanz dient, und
Zwei Kubernetes-Cluster zum Ausführen Ihrer Containerarbeitslasten.
Weitere Informationen zu Google Distributed Cloud Air Gapped-Clustern finden Sie unter Clusterarchitektur.
Der Organisationsinfrastrukturcluster
GDC Sandbox bietet Ihnen einen Organisationsinfrastrukturcluster namens org-1-admin. In der Organisationsinfrastruktur werden die Komponenten der Steuerungsebene und der Datenebene der Organisation ausgeführt. Außerdem wird dort der Management API-Server gehostet, auf dem alle Nicht-Container-Arbeitslasten und -Dienste bereitgestellt werden. Sie würden beispielsweise den Management API-Server verwenden, um VMs zu starten und zu steuern.
So arbeiten Sie über die Befehlszeile mit dem Management API-Server:
Achten Sie darauf, dass Sie den gdcloud-Befehl wie unter Verbinden beschrieben heruntergeladen, konfiguriert und authentifiziert haben.
Legen Sie eine Umgebungsvariable KUBECONFIG fest und laden Sie eine kubeconfig-Datei für den Management API-Server herunter:
Ihre GDC Sandbox-Instanz enthält zwei vorkonfigurierte Kubernetes-Cluster mit den Namen user-vm-1 und user-vm-2 in der Organisation org-1. Verwenden Sie diese Cluster für containerbasierte Arbeitslasten.
Ein Kubernetes-Cluster wird in Distributed Cloud manchmal als Nutzercluster bezeichnet.
So arbeiten Sie über die Befehlszeile mit Kubernetes-Clustern:
Achten Sie darauf, dass Sie den gdcloud-Befehl wie unter Verbinden beschrieben heruntergeladen, konfiguriert und authentifiziert haben.
Legen Sie eine Umgebungsvariable KUBECONFIG fest und laden Sie eine kubeconfig-Datei für den Cluster herunter, den Sie verwenden möchten, entweder user-vm-1 oder user-vm-2.
Im folgenden Beispiel wird eine kubeconfig für user-vm-1 heruntergeladen:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[],[],null,["# Work with clusters\n\nGoogle Distributed Cloud air-gapped provides a managed Kubernetes service with\n[Google Kubernetes Engine (GKE) Enterprise edition](/kubernetes-engine/docs/concepts/gke-editions#why),\nletting you deploy and run container workloads using industry standard\nKubernetes methodologies. Your GDC Sandbox instance comes with three\nclusters created for you:\n\n- An *org infrastructure cluster*, which serves as the control plane for your instance, and\n- Two *Kubernetes clusters* for running your container workloads.\n\nFor details on Google Distributed Cloud air-gapped clusters, see\n[Cluster architecture](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/clusters#cluster-architecture).\n\nThe org infrastructure cluster\n------------------------------\n\nGDC Sandbox provides you an org infrastructure cluster called\n`org-1-admin`. The org infrastructure runs the control plane and data plane\ncomponents of the organization. It also hosts the Management API server where\nall non-container workloads and services are deployed. For example, you would\nuse the Management API server to launch and control VMs.\n\nTo work with the Management API server on the command line, do the following:\n\n1. Make sure that you have downloaded, configured, and authenticated with\n the `gdcloud` command as described in [Connect](/distributed-cloud/sandbox/latest/gdcloud).\n\n2. Set a `KUBECONFIG` environment variable and download a kubeconfig file\n for the Management API server:\n\n export KUBECONFIG=org-1-admin-kubeconfig\n gdcloud clusters get-credentials org-1-admin\n\nIn a similar way, to work with the `org-infra` cluster, do the following:\n\n1. Set a `KUBECONFIG` environment variable and download a kubeconfig file\n for the Management API server:\n\n export KUBECONFIG=org-1-infra-kubeconfig\n gdcloud clusters get-credentials org-1-infra\n\nKubernetes clusters\n-------------------\n\nYour GDC Sandbox instance comes with two pre-created Kubernetes clusters,\ncalled `user-vm-1` and `user-vm-2`, in the\n`org-1` organization. Use these clusters for container-based workloads.\nA Kubernetes cluster is sometimes referred to as a *user cluster*\nin Distributed Cloud.\n| **Warning:** Don't attempt to create new Kubernetes clusters. GDC Sandbox doesn't support additional clusters.\n\nYou can attach clusters to a project when you\n[create a project](/distributed-cloud/sandbox/latest/create-project).\n\nTo work with Kubernetes clusters on the command line, do the following:\n\n1. Make sure that you have downloaded, configured, and authenticated with\n the `gdcloud` command as described in [Connect](/distributed-cloud/sandbox/latest/gdcloud).\n\n2. Set a `KUBECONFIG` environment variable and download a kubeconfig file\n for the cluster you want to use, either `user-vm-1` or `user-vm-2`.\n The following example downloads a kubeconfig for `user-vm-1`:\n\n export KUBECONFIG=user-vm-1-kubeconfig\n gdcloud clusters get-credentials user-vm-1 --zone zone1"]]