Update an SKS Nodepool
Body Required
-
anti-affinity-groups array[object]
Nodepool Anti-affinity Groups
-
description string
Nodepool description
Maximum length is
255
. -
public-ip-assignment string
Configures public IP assignment of the Instances with:
- IPv4 (
inet4
) addressing only; - both IPv4 and IPv6 (
dual
) addressing.
Values are
inet4
ordual
. - IPv4 (
-
labels object
Resource labels
-
taints object
Nodepool taints
-
security-groups array[object]
Nodepool Security Groups
-
name string
Nodepool name, lowercase only
Minimum length is
1
, maximum length is255
. -
instance-type object
Instance Type
Additional properties are allowed.
-
private-networks array[object]
Nodepool Private Networks
-
instance-prefix string
Prefix to apply to managed instances names (default: pool), lowercase only
Minimum length is
1
, maximum length is30
. -
deploy-target object
Instance Deploy Target
Additional properties are allowed.
-
disk-size integer(int64)
Nodepool instances disk size in GiB
Minimum value is
20
, maximum value is51200
.
PUT /sks-cluster/{id}/nodepool/{sks-nodepool-id}
curl \
-X PUT https://api-ch-gva-2.exoscale.com/v2/sks-cluster/{id}/nodepool/{sks-nodepool-id} \
-H "Content-Type: application/json" \
-d '{"anti-affinity-groups":[{"name":"string","description":"string"}],"description":"string","public-ip-assignment":"inet4","labels":{"additionalProperty1":"string","additionalProperty2":"string"},"taints":{"additionalProperty1":{"value":"string","effect":"NoExecute"},"additionalProperty2":{"value":"string","effect":"NoExecute"}},"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":[{"description":"string","labels":{"additionalProperty1":"string","additionalProperty2":"string"},"name":"string","start-ip":"string","vni":42,"netmask":"string","options":{"routers":["string"],"dns-servers":["string"],"ntp-servers":["string"],"domain-search":["string"]},"end-ip":"string"}],"instance-prefix":"string","deploy-target":{"id":"string","name":"string","type":"edge","description":"string"},"disk-size":42}'
Request examples
{
"anti-affinity-groups": [
{
"name": "string",
"description": "string"
}
],
"description": "string",
"public-ip-assignment": "inet4",
"labels": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"taints": {
"additionalProperty1": {
"value": "string",
"effect": "NoExecute"
},
"additionalProperty2": {
"value": "string",
"effect": "NoExecute"
}
},
"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": [
{
"description": "string",
"labels": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"name": "string",
"start-ip": "string",
"vni": 42,
"netmask": "string",
"options": {
"routers": [
"string"
],
"dns-servers": [
"string"
],
"ntp-servers": [
"string"
],
"domain-search": [
"string"
]
},
"end-ip": "string"
}
],
"instance-prefix": "string",
"deploy-target": {
"id": "string",
"name": "string",
"type": "edge",
"description": "string"
},
"disk-size": 42
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}