curl or any other HTTP client. The API allows you to create, list, update, and delete CKS clusters.
- The API server is
https://api.coreweave.com. - Replace
{API_ACCESS_TOKEN}in the examples below with your CoreWeave API access token.
Reference table
| Endpoint | Method | Description |
|---|---|---|
/v1beta1/cks/clusters | GET | List all clusters. |
/v1beta1/cks/clusters | POST | Create a cluster. |
/v1beta1/cks/clusters/{id} | GET | Get a cluster’s information by ID. |
/v1beta1/cks/clusters/{id} | DELETE | Delete a cluster by ID. |
/v1beta1/cks/clusters/{id} | PATCH | Update a cluster’s configuration by ID. |
Clusters
To list or create CKS clusters, use the/v1beta1/cks/clusters endpoint. The API supports the GET and POST methods.
GET /v1beta1/cks/clusters
To list all CKS clusters, use theGET method with the /v1beta1/cks/clusters endpoint.
Example request
Response status code 200
POST /v1beta1/cks/clusters
To create a CKS cluster, use thePOST method with the /v1beta1/cks/clusters endpoint.
The cluster configuration must be supplied as a JSON object in the request body. The following fields are required in the request:
namezonevpcIdpublicversionnetwork.podCidrNamenetwork.serviceCidrNamenetwork.internalLbCidrNamesoidc.issuerUrloidc.clientIdauthzWebhook.serverauthnWebhook.server
- Create a VPC before creating a cluster, and supply the
vpcIdin the cluster configuration. - The cluster
idshould not be supplied in the request body; it is assigned and returned in the response.
data.json
data.json.
Example request
id.
Response status code 200
Cluster by ID
To retrieve, update, or delete a CKS cluster by ID, use the/v1beta1/cks/clusters/{id} endpoint. The API supports the GET, PATCH, and DELETE methods.
GET /v1beta1/cks/clusters/{id}
To get information about a CKS cluster, use theGET method with the /v1beta1/cks/clusters/{id} endpoint. Substitute {id} with the cluster ID.
Example request
Response status code 200
DELETE /v1beta1/cks/clusters/{id}
To delete a CKS cluster, use theDELETE method with the /v1beta1/cks/clusters/{id} endpoint. Substitute {id} with the cluster ID.
Example request
Response status code 200
PATCH /v1beta1/cks/clusters/{id}
To perform a partial update of a CKS cluster’s configuration, use thePATCH method with the /v1beta1/cks/clusters/{id} endpoint. Substitute {id} with the cluster ID. This method uses a field mask, provided in the updateMask field, to specify which fields to modify. For more information on field masks, see the Google AIP guidance.
The cluster configuration must be supplied as a JSON object in the request body. The following fields are required in the request:
idversion
oidc.issuerUrloidc.clientIdauthzWebhook.serverauthnWebhook.server
Example: Upgrading a cluster versionTo upgrade a cluster, provide the new version number in the Remember to include all other required fields in your request.
version field and specify "version" in the updateMask. See Upgrade Kubernetes for more information.For example, to upgrade a cluster to version 1.32, the request body would include:data.json
data.json.
Example request
Response status code 200