Path Parameters
ID of the projectPattern: ^pj[0-9a-hj-km-np-tv-z]{24}$Example: pjkkmx0f2vke4h36nk9cm8v8q0
The Ubicloud location/regionExample: eu-central-h1
kubernetes_cluster_reference
Kubernetes cluster ID or namePattern: ^[a-z0-9](?:[a-z0-9\-]{0,61}[a-z0-9])?$
Body Parameters
Version of the kubernetes clusterExample: 1.28.0
Size of each worker VMExample: standard-4
Number of control plane nodesExample: 3
Number of worker nodesExample: 3
Response
ID of the KubernetesClusterPattern: ^kc[0-9a-hj-km-np-tv-z]{24}$
Name of the KubernetesCluster
Location of the KubernetesCluster
Version of the KubernetesCluster
State of the KubernetesCluster
Number of control plane nodes
Size of each control plane node
Array of control plane VM objects
Array of nodepool objects
ID of the KubernetesNodepool
Name of the KubernetesNodepool
Parent KubernetesCluster id
services_load_balancer_url
Services load balancer URL
curl -X POST "https://api.ubicloud.com/project/{project_id}/location/eu-central-h1/kubernetes-cluster/my-k8s-cluster" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"version": "1.28.0",
"worker_size": "standard-4",
"cp_nodes": 3,
"worker_nodes": 3
}'
{
"id": "kcqxhqbg86sj0ng5e9ck5n191z",
"name": "my-k8s-cluster",
"location": "eu-central-h1",
"version": "1.28.0",
"display_state": "creating",
"cp_node_count": 3,
"node_size": "standard-2",
"cp_vms": [],
"nodepools": [
{
"id": "knqxhqbg86sj0ng5e9ck5n191z",
"name": "default-pool",
"kubernetes_cluster_id": "kcqxhqbg86sj0ng5e9ck5n191z",
"node_count": 3,
"node_size": "standard-4",
"vms": []
}
],
"services_load_balancer_url": null
}