Skip to content

[Update] POST LKE Create Cluster #314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 12 additions & 20 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6336,6 +6336,9 @@ paths:
$ref: '#/components/schemas/LKECluster/properties/tags'
node_pools:
type: array
required:
- type
- count
items:
$ref: '#/components/schemas/LKENodePoolRequestBody'
responses:
Expand All @@ -6360,13 +6363,7 @@ paths:
"node_pools": [
{
"type": "g6-standard-4",
"count": 6,
"disks": [
{
"size": 1028,
"type": "ext4"
}
]
"count": 6
},
{
"type": "g6-standard-8",
Expand All @@ -6381,7 +6378,7 @@ paths:
--label cluster12345 \
--region us-central \
--k8s_version 1.16 \
--node_pools.type g6-standard-4 --node_pools.count 6 --node_pools.disks '[{"size": 1028, "type": "ext4"}]' \
--node_pools.type g6-standard-4 --node_pools.count 6 \
--node_pools.type g6-standard-8 --node_pools.count 3 \
--tags ecomm
/lke/clusters/{clusterId}:
Expand Down Expand Up @@ -6655,21 +6652,14 @@ paths:
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"type": "g6-standard-4",
"count": 6,
"disks": [
{
"size": 1028,
"type": "ext4"
}
]
"count": 6
}' \
https://api.linode.com/v4/lke/clusters/12345/pools
- lang: CLI
source: >
linode-cli lke pool-create 12345 \
--type g6-standard-4 \
--count 6 \
--disks '[{"size": 1028, "type": "ext4"}]'
--count 6
/lke/clusters/{clusterId}/pools/{poolId}:
parameters:
- name: clusterId
Expand Down Expand Up @@ -16198,16 +16188,18 @@ components:
disks:
type: array
description: >
**Note**: This field should be omitted except for special use cases. The disks specified here are
partitions in *addition* to the primary partition and reduce the size of the primary partition,
which can lead to stability problems for the Node.


This Node Pool's custom disk layout. Each item in this array will create a new disk
partition for each node in this Node Pool.

* The custom disk layout is applied to each node in this Node Pool.
* The maximum number of custom disk partitions that can be configured is 7.
* Once the requested disk paritions are allocated, the remaining disk space is allocated to the node's boot disk.
* A Node Pool's custom disk layout is immutable over the lifetime of the Node Pool.

**Note**: If this field is omitted, the node will have a default disk layout consisting of a single partition.
A custom layout is only required for specific use cases.
items:
type: object
description: >
Expand Down