Create a new SKS Nodepool
POST
/sks-cluster/{id}/nodepool
Path parameters
-
id string(uuid) Required
Body Required
-
anti-affinity-groups array[object]
Anti-affinity Group
-
description string
Nodepool description
Maximum length is
255
. -
labels object
Private Network labels
-
taints object
Nodepool taints
-
security-groups array[object]
Security Group
-
name string Required
Nodepool name
Minimum length is
1
, maximum length is255
. -
instance-type object Required
Compute instance type
-
private-networks array[object]
Private Network
-
size integer(int64) Required
Number of instances
Minimum value is
0
. -
kubelet-image-gc object
Kubelet image GC options
-
instance-prefix string
Prefix to apply to instances names (default: pool)
Minimum length is
1
, maximum length is30
. -
deploy-target object
Deploy target
-
addons array[string]
Nodepool addons
Value is
storage-lvm
. -
disk-size integer(int64) Required
Nodepool instances disk size in GB
Minimum value is
20
, maximum value is50000
.
POST /sks-cluster/{id}/nodepool
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/sks-cluster/{id}/nodepool \
-H "Content-Type: application/json" \
-d '{"anti-affinity-groups":[{"name":"string","description":"string"}],"description":"string","labels":{},"taints":{},"security-groups":[{"name":"string","description":"string","external-sources":["string"],"rules":[{"description":"string","start-port":42,"protocol":"tcp","icmp":{"code":42,"type":42},"end-port":42,"security-group":{"name":"string","visibility":"private"},"network":"string","flow-direction":"ingress"}]}],"name":"string","instance-type":{},"private-networks":[{"name":"string","description":"string","netmask":"string","start-ip":"string","end-ip":"string","labels":{}}],"size":42,"kubelet-image-gc":{"high-threshold":42,"low-threshold":42,"min-age":"string"},"instance-prefix":"string","deploy-target":{"id":"string","name":"string","type":"edge","description":"string"},"addons":["storage-lvm"],"disk-size":42}'
Request example
{
"anti-affinity-groups": [
{
"name": "string",
"description": "string"
}
],
"description": "string",
"labels": {},
"taints": {},
"security-groups": [
{
"name": "string",
"description": "string",
"external-sources": [
"string"
],
"rules": [
{
"description": "string",
"start-port": 42,
"protocol": "tcp",
"icmp": {
"code": 42,
"type": 42
},
"end-port": 42,
"security-group": {
"name": "string",
"visibility": "private"
},
"network": "string",
"flow-direction": "ingress"
}
]
}
],
"name": "string",
"instance-type": {},
"private-networks": [
{
"name": "string",
"description": "string",
"netmask": "string",
"start-ip": "string",
"end-ip": "string",
"labels": {}
}
],
"size": 42,
"kubelet-image-gc": {
"high-threshold": 42,
"low-threshold": 42,
"min-age": "string"
},
"instance-prefix": "string",
"deploy-target": {
"id": "string",
"name": "string",
"type": "edge",
"description": "string"
},
"addons": [
"storage-lvm"
],
"disk-size": 42
}
Response example (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}