Stay organized with collections
Save and categorize content based on your preferences.
The Cluster API uses Kubernetes custom resources and relies on the Kubernetes
Resource Model (KRM). It manages the lifecycle of clusters in a given
organization, such as installing, upgrading, and uninstalling.
To use the Cluster API, we recommend that you use the GDC console. If
your application needs to use your own libraries to call this API, use the
following example and the
full API definition to build
your requests.
Service endpoint and discovery document
The API endpoint for the Cluster API is
https://MANAGEMENT_API_SERVER_ENDPOINT/apis/cluster.gdc.goog/v1,
where MANAGEMENT_API_SERVER_ENDPOINT is the endpoint of the
Management API server.
Using the kubectl proxy command, you can access that URL in your browser or
with a tool such as curl to get the discovery document for the Cluster API.
The kubectl proxy command opens up a proxy to the Kubernetes API server on
your local machine. Once that command is running, you can access the document at
the following URL: http://127.0.0.1:8001/apis/cluster.gdc.goog/v1.
Example Cluster resource
The following is an example of a Cluster object configured as a user cluster:
[[["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 Cluster API leverages Kubernetes custom resources and the Kubernetes Resource Model (KRM) to manage cluster lifecycles, including installation, upgrades, and uninstallation."],["The recommended method for interacting with the Cluster API is through the GDC console, but custom libraries can also be used by referring to the full API definition."],["The Cluster API endpoint is located at `https://\u003cMANAGEMENT_API_SERVER_ENDPOINT\u003e/apis/cluster.gdc.goog/v1`, where `\u003cMANAGEMENT_API_SERVER_ENDPOINT\u003e` is the Management API server endpoint."],["The discovery document for the Cluster API can be accessed via `kubectl proxy` at `http://127.0.0.1:8001/apis/cluster.gdc.goog/v1` after establishing a proxy to the Kubernetes API server."],["The example `Cluster` resource provided displays a user cluster configuration which includes specifications for the network, initial Kubernetes version, load balancer, node pool, and release channel."]]],[]]