Replace MANAGEMENT_API_SERVER_ENDPOINT with the endpoint of the
Management API server.
Discovery document
Use the kubectl proxy --port=8001 command to open a proxy to the API server on
your local machine. From there, you can access the discovery document at
the following URLs:
The following is an example of a ProjectNetworkPolicy object that enables workloads in the project-1 project to permit connections from workloads in the project-2 project, as well as the return traffic for the same flows:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 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`."]]],[]]