Skip to content

Commit 31a9fa4

Browse files
Merge pull request #314 from hzoppetti/node-pool-disks-no-req
[Update] POST LKE Create Cluster
2 parents fd79c56 + cc9e290 commit 31a9fa4

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

openapi.yaml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6339,6 +6339,9 @@ paths:
63396339
$ref: '#/components/schemas/LKECluster/properties/tags'
63406340
node_pools:
63416341
type: array
6342+
required:
6343+
- type
6344+
- count
63426345
items:
63436346
$ref: '#/components/schemas/LKENodePoolRequestBody'
63446347
responses:
@@ -6363,13 +6366,7 @@ paths:
63636366
"node_pools": [
63646367
{
63656368
"type": "g6-standard-4",
6366-
"count": 6,
6367-
"disks": [
6368-
{
6369-
"size": 1028,
6370-
"type": "ext4"
6371-
}
6372-
]
6369+
"count": 6
63736370
},
63746371
{
63756372
"type": "g6-standard-8",
@@ -6384,7 +6381,7 @@ paths:
63846381
--label cluster12345 \
63856382
--region us-central \
63866383
--k8s_version 1.16 \
6387-
--node_pools.type g6-standard-4 --node_pools.count 6 --node_pools.disks '[{"size": 1028, "type": "ext4"}]' \
6384+
--node_pools.type g6-standard-4 --node_pools.count 6 \
63886385
--node_pools.type g6-standard-8 --node_pools.count 3 \
63896386
--tags ecomm
63906387
/lke/clusters/{clusterId}:
@@ -6658,21 +6655,14 @@ paths:
66586655
-H "Authorization: Bearer $TOKEN" \
66596656
-X POST -d '{
66606657
"type": "g6-standard-4",
6661-
"count": 6,
6662-
"disks": [
6663-
{
6664-
"size": 1028,
6665-
"type": "ext4"
6666-
}
6667-
]
6658+
"count": 6
66686659
}' \
66696660
https://api.linode.com/v4/lke/clusters/12345/pools
66706661
- lang: CLI
66716662
source: >
66726663
linode-cli lke pool-create 12345 \
66736664
--type g6-standard-4 \
6674-
--count 6 \
6675-
--disks '[{"size": 1028, "type": "ext4"}]'
6665+
--count 6
66766666
/lke/clusters/{clusterId}/pools/{poolId}:
66776667
parameters:
66786668
- name: clusterId
@@ -16202,16 +16192,18 @@ components:
1620216192
type: array
1620316193
x-linode-cli-format: json
1620416194
description: >
16195+
**Note**: This field should be omitted except for special use cases. The disks specified here are
16196+
partitions in *addition* to the primary partition and reduce the size of the primary partition,
16197+
which can lead to stability problems for the Node.
16198+
16199+
1620516200
This Node Pool's custom disk layout. Each item in this array will create a new disk
1620616201
partition for each node in this Node Pool.
1620716202

1620816203
* The custom disk layout is applied to each node in this Node Pool.
1620916204
* The maximum number of custom disk partitions that can be configured is 7.
1621016205
* Once the requested disk paritions are allocated, the remaining disk space is allocated to the node's boot disk.
1621116206
* A Node Pool's custom disk layout is immutable over the lifetime of the Node Pool.
16212-
16213-
**Note**: If this field is omitted, the node will have a default disk layout consisting of a single partition.
16214-
A custom layout is only required for specific use cases.
1621516207
items:
1621616208
type: object
1621716209
description: >

0 commit comments

Comments
 (0)