Skip to main content
POST
/
cloud
/
v2
/
k8s
/
clusters
/
{project_id}
/
{region_id}
/
{cluster_name}
/
pools
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
task_id_list = client.cloud.k8s.clusters.pools.create(
    cluster_name="cluster_name",
    project_id=0,
    region_id=0,
    flavor_id="g1-standard-1-2",
    min_node_count=3,
    name="my-pool",
)
print(task_id_list.tasks)
{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
integer
required
region_id
integer
required
cluster_name
string
required

Body

application/json
flavor_id
string
required
Examples:
min_node_count
integer
required
Required range: 1 <= x <= 200
Examples:
name
string
required
Required string length: 1 - 20
Examples:
auto_healing_enabled
boolean | null
default:false
Examples:
boot_volume_size
integer | null
Required range: 10 <= x <= 2000
Examples:
boot_volume_type
enum<string> | null
Available options:
cold,
ssd_hiiops,
ssd_local,
ssd_lowlatency,
standard,
ultra
Examples:
crio_config
object | null
Examples:
is_public_ipv4
boolean | null
default:false
Examples:
kubelet_config
object | null
Examples:
labels
object | null
Examples:
max_node_count
integer | null
Required range: 1 <= x <= 200
Examples:
servergroup_policy
enum<string> | null
Available options:
affinity,
anti-affinity,
soft-anti-affinity
taints
object | null
Examples:

Response

tasks
string[]
required
Examples: