Ersetzen Sie MANAGEMENT_API_SERVER_ENDPOINT durch den Endpunkt des Management API-Servers.
Discovery-Dokument
Verwenden Sie den Befehl kubectl proxy --port=8001, um einen Proxy zum API-Server auf Ihrem lokalen Computer zu öffnen. Von dort aus können Sie über die folgenden URLs auf das Discovery-Dokument zugreifen:
Beispiel für eine projektübergreifende Richtlinie für eingehenden Traffic
Das Folgende ist ein Beispiel für ein ProjectNetworkPolicy-Objekt, mit dem Arbeitslasten im Projekt project-1 Verbindungen von Arbeitslasten im Projekt project-2 sowie den Rücklauftraffic für dieselben Flows zulassen können:
[[["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-07-16 (UTC)."],[[["The Networking API utilizes Kubernetes custom resources and the Kubernetes Resource Model (KRM) for managing networking in Google Distributed Cloud (GDC) air-gapped."],["Networking APIs are available in two packages, supporting zonal and global deployments respectively."],["The API endpoints for zonal and global Networking APIs are `https://\u003cvar\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e/apis/networking.gdc.goog/v1` and `https://\u003cvar\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e/apis/networking.global.gdc.goog/v1`."],["You can access the discovery document using `kubectl proxy --port=8001`, and find it at `http://127.0.0.1:8001/apis/networking.gdc.goog/v1` and `http://127.0.0.1:8001/apis/networking.global.gdc.goog/v1`."],["`ProjectNetworkPolicy` objects can be defined to allow traffic between different projects, as seen in the example for allowing ingress traffic from `project-2` to `project-1`."]]],[]]