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

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
k8s_cluster_pool = client.cloud.k8s.clusters.pools.update(
    pool_name="pool_name",
    project_id=0,
    region_id=0,
    cluster_name="cluster_name",
)
print(k8s_cluster_pool.id)
{
  "auto_healing_enabled": true,
  "boot_volume_size": 123,
  "boot_volume_type": "<string>",
  "created_at": "<string>",
  "crio_config": {},
  "flavor_id": "<string>",
  "id": "<string>",
  "is_public_ipv4": true,
  "kubelet_config": {},
  "labels": {},
  "max_node_count": 123,
  "min_node_count": 123,
  "name": "<string>",
  "node_count": 123,
  "status": "<string>",
  "taints": {},
  "servergroup_id": "",
  "servergroup_name": "",
  "servergroup_policy": ""
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project identifier

region_id
integer
required

Region identifier

cluster_name
string
required

Cluster name

pool_name
string
required

Pool name

Body

application/json
auto_healing_enabled
boolean | null

Enable/disable auto healing

Example:

true

labels
Labels · object

Labels applied to the cluster pool

Example:
{ "my-label": "foo" }
max_node_count
integer | null

Maximum node count

Example:

3

min_node_count
integer | null

Minimum node count

Example:

1

node_count
integer | null
deprecated

This field is deprecated. Please use the cluster pool resize handler instead.

Example:

2

taints
Taints · object

Taints applied to the cluster pool

Example:
{ "my-taint": "bar:NoSchedule" }

Response

Updated pool details

auto_healing_enabled
boolean
required

Indicates the status of auto healing

boot_volume_size
integer
required

Size of the boot volume

boot_volume_type
string
required

Type of the boot volume

created_at
string
required

Date of function creation

crio_config
Crio Config · object
required

Crio configuration for pool nodes

flavor_id
string
required

ID of the cluster pool flavor

id
string
required

UUID of the cluster pool

is_public_ipv4
boolean
required

Indicates if the pool is public

kubelet_config
Kubelet Config · object
required

Kubelet configuration for pool nodes

labels
Labels · object
required

Labels applied to the cluster pool

max_node_count
integer
required

Maximum node count in the cluster pool

min_node_count
integer
required

Minimum node count in the cluster pool

name
string
required

Name of the cluster pool

node_count
integer
required

Node count in the cluster pool

status
string
required

Status of the cluster pool

taints
Taints · object
required

Taints applied to the cluster pool

servergroup_id
string
default:""

Server group ID

servergroup_name
string
default:""

Server group name

servergroup_policy
string
default:""

Anti-affinity, affinity or soft-anti-affinity server group policy