Skip to content
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
107 changes: 47 additions & 60 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7521,18 +7521,7 @@ paths:
content:
application/json:
schema:
type: object
properties:
type:
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/type'
count:
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/count'
disks:
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/disks'
id:
$ref: '#/components/schemas/LKENodePool/properties/id'
nodes:
$ref: '#/components/schemas/LKENodePool/properties/nodes'
$ref: '#/components/schemas/LKENodePool'
default:
$ref: '#/components/responses/ErrorResponse'
x-code-samples:
Expand All @@ -7542,14 +7531,16 @@ paths:
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"type": "g6-standard-4",
"count": 6
"count": 6,
"tags": ["example-tag"]
}' \
https://api.linode.com/v4/lke/clusters/12345/pools
- lang: CLI
source: >
linode-cli lke pool-create 12345 \
--type g6-standard-4 \
--count 6
--count 6 \
--tags example-tag
/lke/clusters/{clusterId}/recycle:
parameters:
- name: clusterId
Expand Down Expand Up @@ -7627,18 +7618,7 @@ paths:
content:
application/json:
schema:
type: object
properties:
type:
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/type'
count:
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/count'
disks:
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/disks'
id:
$ref: '#/components/schemas/LKENodePool/properties/id'
nodes:
$ref: '#/components/schemas/LKENodePool/properties/nodes'
$ref: '#/components/schemas/LKENodePool'
x-code-samples:
- lang: Shell
source: >
Expand Down Expand Up @@ -7677,18 +7657,7 @@ paths:
content:
application/json:
schema:
type: object
properties:
type:
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/type'
count:
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/count'
disks:
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/disks'
id:
$ref: '#/components/schemas/LKENodePool/properties/id'
nodes:
$ref: '#/components/schemas/LKENodePool/properties/nodes'
$ref: '#/components/schemas/LKENodePool'
x-code-samples:
- lang: Shell
source: >
Expand Down Expand Up @@ -18961,31 +18930,50 @@ components:
cluster.
properties:
type:
type: string
description: A Linode Type for all of the nodes in the Node Pool.
example: g6-standard-4
$ref: '#/components/schemas/LKENodePool/properties/type'
count:
type: integer
description: The number of nodes in the Node Pool.
minimum: 1
maximum: 100
example: 6
$ref: '#/components/schemas/LKENodePool/properties/count'
disks:
type: array
x-linode-cli-format: json
description: >
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.
items:
$ref: '#/components/schemas/LKENodePool/properties/disks/items'
tags:
$ref: '#/components/schemas/LKENodePool/properties/tags'
LKENodePool:
type: object
description: >
The set of Node Pools which are members of the Kubernetes cluster.
Node Pools consist of a Linode type, the number of Linodes to
deploy of that type, and additional status information.
properties:
type:
type: string
description: The Linode Type for all of the nodes in the Node Pool.
example: g6-standard-4
count:
type: integer
description: The number of nodes in the Node Pool.
minimum: 1
maximum: 100
example: 6
disks:
type: array
x-linode-cli-format: json
description: |
This Node Pool's custom disk layout.
items:
type: object
description: >
Expand All @@ -19006,18 +18994,6 @@ components:
- raw
- ext4
example: ext-4
LKENodePool:
# Note that LKENodePool inherits all properties of
# LKENodePoolRequestBody and then overrides some of the sub-properties
type: object
allOf:
- $ref: '#/components/schemas/LKENodePoolRequestBody'
- type: object
description: >
The set of Node Pools which are members of the Kubernetes cluster.
Node Pools consist of a Linode type, the number of Linodes to
deploy of that type, and additional status information.
properties:
id:
type: integer
description: >
Expand All @@ -19032,6 +19008,17 @@ components:
the instance_id will be returned as null.
items:
$ref: '#/components/schemas/LKENodeStatus'
tags:
x-linode-filterable: true
description: >
An array of tags applied to this object. Tags are for organizational
purposes only.
type: array
items:
type: string
example:
- example tag
- another example
LKENodeStatus:
type: object
description: >
Expand Down