Method: projects.zones.clusters.create

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.

By default, the cluster is created in the project's default network.

One firewall is added for the cluster. After cluster creation, the cluster creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.

Finally, an entry is added to the project's global metadata indicating which CIDR range is being used by the cluster.

HTTP request

POST https://container.googleapis.com/v1/projects/{projectId}/zones/{zone}/clusters

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
projectId

string

The Google Developers Console project ID or project number.

zone

string

The name of the Google Compute Engine zone in which the cluster resides.

Request body

The request body contains data with the following structure:

JSON representation
{
  "cluster": {
    object(Cluster)
  },
}
Fields
cluster

object(Cluster)

A cluster resource

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Auth Guide.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Container Engine