Skip to content

Commit c5fb834

Browse files
committed
Add autoscaler to Node Pools
1 parent 5293209 commit c5fb834

File tree

1 file changed

+58
-2
lines changed

1 file changed

+58
-2
lines changed

openapi.yaml

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7415,7 +7415,13 @@ paths:
74157415
"node_pools": [
74167416
{
74177417
"type": "g6-standard-4",
7418-
"count": 6
7418+
"count": 6,
7419+
"autoscaler": {
7420+
"enabled": true,
7421+
"max": 12,
7422+
"min": 3
7423+
}
7424+
}
74197425
},
74207426
{
74217427
"type": "g6-standard-8",
@@ -7709,7 +7715,12 @@ paths:
77097715
-X POST -d '{
77107716
"type": "g6-standard-4",
77117717
"count": 6,
7712-
"tags": ["example-tag"]
7718+
"tags": ["example-tag"],
7719+
"autoscaler": {
7720+
"enabled": true,
7721+
"max": 12,
7722+
"min": 3
7723+
}
77137724
}' \
77147725
https://api.linode.com/v4/lke/clusters/12345/pools
77157726
- lang: CLI
@@ -19131,6 +19142,30 @@ components:
1913119142
Specifies a collection of Linodes which will be members of a Kubernetes
1913219143
cluster.
1913319144
properties:
19145+
autoscaler:
19146+
type: object
19147+
description: |
19148+
When enabled, the number of nodes autoscales within the defined minimum and maximum values.
19149+
19150+
When making a request, `max` and `min` require each other.
19151+
properties:
19152+
enabled:
19153+
type: boolean
19154+
description: Whether autoscaling is enabled for this Node Pool. Defaults to `false`.
19155+
example: true
19156+
max:
19157+
type: integer
19158+
minimum: 1
19159+
maximum: 100
19160+
description: |
19161+
The maximum number of nodes to autoscale to. Defaults to the Node Pool's `count`.
19162+
example: 12
19163+
min:
19164+
type: integer
19165+
minimum: 1
19166+
maximum: 100
19167+
description: The minimum number of nodes to autoscale to. Defaults to the Node Pool's `count`.
19168+
example: 3
1913419169
type:
1913519170
$ref: '#/components/schemas/LKENodePool/properties/type'
1913619171
count:
@@ -19161,6 +19196,27 @@ components:
1916119196
Node Pools consist of a Linode type, the number of Linodes to
1916219197
deploy of that type, and additional status information.
1916319198
properties:
19199+
autoscaler:
19200+
type: object
19201+
description: |
19202+
When enabled, the number of nodes autoscales within the defined minimum and maximum values.
19203+
properties:
19204+
enabled:
19205+
type: boolean
19206+
description: Whether autoscaling is enabled for this Node Pool.
19207+
example: true
19208+
max:
19209+
type: integer
19210+
minimum: 1
19211+
maximum: 100
19212+
description: The maximum number of nodes to autoscale to.
19213+
example: 12
19214+
min:
19215+
type: integer
19216+
minimum: 1
19217+
maximum: 100
19218+
description: The minimum number of nodes to autoscale to.
19219+
example: 3
1916419220
type:
1916519221
type: string
1916619222
description: The Linode Type for all of the nodes in the Node Pool.

0 commit comments

Comments
 (0)