@@ -6268,8 +6268,20 @@ paths:
6268
6268
"k8s_version": "1.16",
6269
6269
"tags": ["ecomm", "blogs"],
6270
6270
"node_pools": [
6271
- { "type": "g6-standard-4", "count": 6},
6272
- { "type": "g6-standard-8", "count": 3}
6271
+ {
6272
+ "type": "g6-standard-4",
6273
+ "count": 6,
6274
+ "disks": [
6275
+ {
6276
+ "size": 1028,
6277
+ "type": "ext4"
6278
+ }
6279
+ ]
6280
+ },
6281
+ {
6282
+ "type": "g6-standard-8",
6283
+ "count": 3
6284
+ }
6273
6285
]
6274
6286
}' \
6275
6287
https://api.linode.com/v4/lke/clusters
@@ -6279,7 +6291,7 @@ paths:
6279
6291
--label cluster12345 \
6280
6292
--region us-central \
6281
6293
--k8s_version 1.16 \
6282
- --node_pools.type g6-standard-4 --node_pools.count 6 \
6294
+ --node_pools.type g6-standard-4 --node_pools.count 6 --node_pools.disks '[{"size": 1028, "type": "ext4"}]' \
6283
6295
--node_pools.type g6-standard-8 --node_pools.count 3 \
6284
6296
--tags ecomm
6285
6297
/lke/clusters/{clusterId}:
@@ -6533,7 +6545,18 @@ paths:
6533
6545
content:
6534
6546
application/json:
6535
6547
schema:
6536
- $ref: '#/components/schemas/LKENodePool'
6548
+ type: object
6549
+ properties:
6550
+ type:
6551
+ $ref: '#/components/schemas/LKENodePoolRequestBody/properties/type'
6552
+ count:
6553
+ $ref: '#/components/schemas/LKENodePoolRequestBody/properties/count'
6554
+ disks:
6555
+ $ref: '#/components/schemas/LKENodePoolRequestBody/properties/disks'
6556
+ id:
6557
+ $ref: '#/components/schemas/LKENodePool/properties/id'
6558
+ nodes:
6559
+ $ref: '#/components/schemas/LKENodePool/properties/nodes'
6537
6560
default:
6538
6561
$ref: '#/components/responses/ErrorResponse'
6539
6562
x-code-samples:
@@ -6543,14 +6566,21 @@ paths:
6543
6566
-H "Authorization: Bearer $TOKEN" \
6544
6567
-X POST -d '{
6545
6568
"type": "g6-standard-4",
6546
- "count": 6
6569
+ "count": 6,
6570
+ "disks": [
6571
+ {
6572
+ "size": 1028,
6573
+ "type": "ext4"
6574
+ }
6575
+ ]
6547
6576
}' \
6548
6577
https://api.linode.com/v4/lke/clusters/12345/pools
6549
6578
- lang: CLI
6550
6579
source: >
6551
6580
linode-cli lke pool-create 12345 \
6552
6581
--type g6-standard-4 \
6553
6582
--count 6 \
6583
+ --disks '[{"size": 1028, "type": "ext4"}]'
6554
6584
/lke/clusters/{clusterId}/pools/{poolId}:
6555
6585
parameters:
6556
6586
- name: clusterId
@@ -6584,7 +6614,18 @@ paths:
6584
6614
content:
6585
6615
application/json:
6586
6616
schema:
6587
- $ref: '#/components/schemas/LKENodePool'
6617
+ type: object
6618
+ properties:
6619
+ type:
6620
+ $ref: '#/components/schemas/LKENodePoolRequestBody/properties/type'
6621
+ count:
6622
+ $ref: '#/components/schemas/LKENodePoolRequestBody/properties/count'
6623
+ disks:
6624
+ $ref: '#/components/schemas/LKENodePoolRequestBody/properties/disks'
6625
+ id:
6626
+ $ref: '#/components/schemas/LKENodePool/properties/id'
6627
+ nodes:
6628
+ $ref: '#/components/schemas/LKENodePool/properties/nodes'
6588
6629
x-code-samples:
6589
6630
- lang: Shell
6590
6631
source: >
@@ -6621,7 +6662,18 @@ paths:
6621
6662
content:
6622
6663
application/json:
6623
6664
schema:
6624
- $ref: '#/components/schemas/LKENodePool'
6665
+ type: object
6666
+ properties:
6667
+ type:
6668
+ $ref: '#/components/schemas/LKENodePoolRequestBody/properties/type'
6669
+ count:
6670
+ $ref: '#/components/schemas/LKENodePoolRequestBody/properties/count'
6671
+ disks:
6672
+ $ref: '#/components/schemas/LKENodePoolRequestBody/properties/disks'
6673
+ id:
6674
+ $ref: '#/components/schemas/LKENodePool/properties/id'
6675
+ nodes:
6676
+ $ref: '#/components/schemas/LKENodePool/properties/nodes'
6625
6677
x-code-samples:
6626
6678
- lang: Shell
6627
6679
source: >
@@ -16015,19 +16067,53 @@ components:
16015
16067
type:
16016
16068
type: string
16017
16069
description: A Linode Type for all of the nodes in the Node Pool.
16018
- example: " g6-standard-4"
16070
+ example: g6-standard-4
16019
16071
count:
16020
16072
type: integer
16021
16073
description: The number of nodes in the Node Pool.
16022
16074
minimum: 1
16023
16075
maximum: 100
16024
16076
example: 6
16077
+ disks:
16078
+ type: array
16079
+ description: >
16080
+ This Node Pool's custom disk layout. Each item in this array will create a new disk
16081
+ partition for each node in this Node Pool.
16082
+
16083
+ * The custom disk layout is applied to each node in this Node Pool.
16084
+ * The maximum number of custom disk partitions that can be configured is 7.
16085
+ * Once the requested disk paritions are allocated, the remaining disk space is allocated to the node's boot disk.
16086
+ * A Node Pool's custom disk layout is immutable over the lifetime of the Node Pool.
16087
+
16088
+ **Note**: If this field is omitted, the node will have a default disk layout consisting of a single partition.
16089
+ A custom layout is only required for specific use cases.
16090
+ items:
16091
+ type: object
16092
+ description: >
16093
+ The values to assign to each partition in this Node Pool's custom disk layout.
16094
+ properties:
16095
+ size:
16096
+ description: >
16097
+ The size of this custom disk partition in MB.
16098
+
16099
+ * The size of this disk partition must not exceed the capacity of the node's plan type.
16100
+ type: integer
16101
+ example: 1024
16102
+ type:
16103
+ description: >
16104
+ This custom disk partition's filesystem type.
16105
+ type: string
16106
+ enum:
16107
+ - raw
16108
+ - ext4
16109
+ example: ext-4
16025
16110
LKENodePool:
16026
16111
# Note that LKENodePool inherits all properties of
16027
16112
# LKENodePoolRequestBody and then overrides some of the sub-properties
16028
16113
type: object
16029
16114
allOf:
16030
16115
- $ref: '#/components/schemas/LKENodePoolRequestBody'
16116
+ - type: object
16031
16117
description: >
16032
16118
The set of Node Pools which are members of the Kubernetes cluster.
16033
16119
Node Pools consist of a Linode type, the number of Linodes to
0 commit comments