Create a new Kubernetes cluster
Creates a new Kubernetes cluster for the authenticated account. To preview pricing without creating anything, use POST /kubernetes/cost-estimate.
Authentication
X-API-Client-IDstring
API Client ID
X-API-Client-Secretstring
API Client Secret
Request
This endpoint expects an object.
name
Name of the cluster
region
Region where to deploy the cluster
version
Kubernetes version to use (semantic version)
controlNodes
Number of control plane nodes: a whole number, 1 or more.
workerNodes
Number of worker nodes: a whole number, 1 or more.
package
Package label to use for every node in the cluster. Use controlPackage or workerPackage to give one node type a different package. Required unless you send both controlPackage and workerPackage. Leave it out when you send both.
controlPackage
Package label for the control-plane nodes. Overrides package.
workerPackage
Package label for the worker nodes. Overrides package.
description
Description of the cluster
networkId
Network ID to use for the cluster
keypair
SSH keypair name to use for cluster nodes
Response
The cluster has been successfully created
id
Unique identifier for the cluster.
name
Human-readable name for the cluster.
region
Region the cluster is deployed in.
status
Current lifecycle state of the cluster.
kubernetesVersion
Kubernetes version the cluster is running.
createdAt
When the cluster was created.
description
Description of the cluster.
nodePool
Node-pool configuration for the cluster.
packageDeprecated
Package label of the worker nodes (deprecated, use nodePool.control.package and nodePool.worker.package).
ipAddress
Public IP address attached to the cluster.
ipAddressId
Identifier of the public IP attached to the cluster.
deletedAt
When the cluster was deleted. Omitted if the cluster still exists.
nodes
Cluster nodes. Only included when details=true.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error