Skip to content

Commit c51d16c

Browse files
author
hzoppetti
committed
removed disks from examples, added required to type and count on node_pools in create cluster
1 parent 35a3c71 commit c51d16c

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

openapi.yaml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6336,6 +6336,9 @@ paths:
63366336
$ref: '#/components/schemas/LKECluster/properties/tags'
63376337
node_pools:
63386338
type: array
6339+
required:
6340+
- type
6341+
- count
63396342
items:
63406343
$ref: '#/components/schemas/LKENodePoolRequestBody'
63416344
responses:
@@ -6360,13 +6363,7 @@ paths:
63606363
"node_pools": [
63616364
{
63626365
"type": "g6-standard-4",
6363-
"count": 6,
6364-
"disks": [
6365-
{
6366-
"size": 1028,
6367-
"type": "ext4"
6368-
}
6369-
]
6366+
"count": 6
63706367
},
63716368
{
63726369
"type": "g6-standard-8",
@@ -6655,13 +6652,7 @@ paths:
66556652
-H "Authorization: Bearer $TOKEN" \
66566653
-X POST -d '{
66576654
"type": "g6-standard-4",
6658-
"count": 6,
6659-
"disks": [
6660-
{
6661-
"size": 1028,
6662-
"type": "ext4"
6663-
}
6664-
]
6655+
"count": 6
66656656
}' \
66666657
https://api.linode.com/v4/lke/clusters/12345/pools
66676658
- lang: CLI
@@ -16198,16 +16189,18 @@ components:
1619816189
disks:
1619916190
type: array
1620016191
description: >
16192+
**Note**: This field should be omitted except for special use cases. The disks specified here are
16193+
partitions in *addition* to the primary partition and reduce the size of the primary partition,
16194+
which can lead to stability problems for the Node.
16195+
16196+
1620116197
This Node Pool's custom disk layout. Each item in this array will create a new disk
1620216198
partition for each node in this Node Pool.
1620316199

1620416200
* The custom disk layout is applied to each node in this Node Pool.
1620516201
* The maximum number of custom disk partitions that can be configured is 7.
1620616202
* Once the requested disk paritions are allocated, the remaining disk space is allocated to the node's boot disk.
1620716203
* A Node Pool's custom disk layout is immutable over the lifetime of the Node Pool.
16208-
16209-
**Note**: If this field is omitted, the node will have a default disk layout consisting of a single partition.
16210-
A custom layout is only required for specific use cases.
1621116204
items:
1621216205
type: object
1621316206
description: >

0 commit comments

Comments
 (0)