1
1
openapi: 3.0.1
2
2
info:
3
- version: 4.82 .0
3
+ version: 4.83 .0
4
4
5
5
title: Linode API
6
6
description: |
@@ -6517,6 +6517,20 @@ paths:
6517
6517
description: >
6518
6518
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
6519
6519
To delete a tag, exclude it from your `tags` array.
6520
+ k8s_version:
6521
+ type: string
6522
+ description: >
6523
+ The desired Kubernetes version for this Kubernetes cluster in the format of
6524
+ <major>.<minor>. New and recycled Nodes in this cluster will be installed with the
6525
+ latest available patch for the Cluster's Kubernetes version.
6526
+
6527
+
6528
+ When upgrading the Kubernetes version, only the next latest minor version following the current
6529
+ version can be deployed. For example, a cluster with Kubernetes version 1.16 can be upgraded to
6530
+ version 1.17, but not directly to 1.18.
6531
+
6532
+
6533
+ The Kubernetes version of a cluster can not be downgraded.
6520
6534
responses:
6521
6535
'200':
6522
6536
description: Returns a single Kubernetes cluster.
@@ -6554,6 +6568,7 @@ paths:
6554
6568
-X PUT -d '{
6555
6569
"label": "lkecluster54321"
6556
6570
"tags" : ["ecomm", "blog", "prod", "monitoring"]
6571
+ "k8s_version": "1.17"
6557
6572
}' \
6558
6573
https://api.linode.com/v4/lke/clusters/12345
6559
6574
- lang: CLI
@@ -6726,6 +6741,50 @@ paths:
6726
6741
linode-cli lke pool-create 12345 \
6727
6742
--type g6-standard-4 \
6728
6743
--count 6
6744
+ /lke/clusters/{clusterId}/recycle:
6745
+ parameters:
6746
+ - name: clusterId
6747
+ in: path
6748
+ description: ID of the Kubernetes cluster to be recycled.
6749
+ required: true
6750
+ schema:
6751
+ type: integer
6752
+ x-linode-cli-command: lke
6753
+ post:
6754
+ operationId: postLKEClusterRecycle
6755
+ x-linode-cli-action: cluster-recycle
6756
+ security:
6757
+ - personalAccessToken: []
6758
+ - oauth:
6759
+ - lke:read_write
6760
+ tags:
6761
+ - Linode Kubernetes Engine (LKE)
6762
+ summary: Kubernetes Cluster Recycle
6763
+ description: |
6764
+ Recycles a designated Kubernetes Cluster. All Linodes within the Cluster will be deleted
6765
+ and replaced with new Linodes on a rolling basis, which may take several minutes. Replacement Nodes are
6766
+ installed with the latest available patch for the Cluster's Kubernetes Version.
6767
+
6768
+ **Any local storage on deleted Linodes (such as "hostPath" and "emptyDir" volumes, or "local" PersistentVolumes) will be erased.**
6769
+ responses:
6770
+ '200':
6771
+ description: Recycle request succeeded and is in progress.
6772
+ content:
6773
+ application/json:
6774
+ schema:
6775
+ type: object
6776
+ default:
6777
+ $ref: '#/components/responses/ErrorResponse'
6778
+ x-code-samples:
6779
+ - lang: Shell
6780
+ source: >
6781
+ curl -H "Content-Type: application/json" \
6782
+ -H "Authorization: Bearer $TOKEN" \
6783
+ -X POST \
6784
+ https://api.linode.com/v4/lke/clusters/12345/recycle
6785
+ - lang: CLI
6786
+ source: >
6787
+ linode-cli lke cluster-recycle 12345
6729
6788
/lke/clusters/{clusterId}/pools/{poolId}:
6730
6789
parameters:
6731
6790
- name: clusterId
@@ -6901,7 +6960,7 @@ paths:
6901
6960
**Any local storage on deleted Linodes (such as "hostPath" and "emptyDir" volumes, or "local" PersistentVolumes) will be erased.**
6902
6961
responses:
6903
6962
'200':
6904
- description: Node Pool has been recycled .
6963
+ description: Recycle request succeeded and is in progress .
6905
6964
content:
6906
6965
application/json:
6907
6966
schema:
@@ -6918,6 +6977,132 @@ paths:
6918
6977
- lang: CLI
6919
6978
source: >
6920
6979
linode-cli lke pool-recycle 12345 456
6980
+ /lke/clusters/{clusterID}/nodes/{nodeId}:
6981
+ parameters:
6982
+ - name: clusterId
6983
+ in: path
6984
+ description: ID of the Kubernetes cluster containing the Node.
6985
+ required: true
6986
+ schema:
6987
+ type: integer
6988
+ - name: nodeId
6989
+ in: path
6990
+ description: ID of the Node to look up.
6991
+ required: true
6992
+ schema:
6993
+ type: string
6994
+ x-linode-cli-command: lke
6995
+ get:
6996
+ operationId: getLKEClusterNode
6997
+ x-linode-cli-action: node-view
6998
+ security:
6999
+ - personalAccessToken: []
7000
+ - oauth:
7001
+ - lke:read_write
7002
+ tags:
7003
+ - Linode Kubernetes Engine (LKE)
7004
+ summary: Node View
7005
+ description: >
7006
+ Returns the values for a specified node object.
7007
+ responses:
7008
+ '200':
7009
+ description: Returns the values of a node object in the form that it appears currently in the node pool array.
7010
+ content:
7011
+ application/json:
7012
+ schema:
7013
+ type: object
7014
+ properties:
7015
+ data:
7016
+ type: object
7017
+ description: >
7018
+ The selected node in the cluster.
7019
+ properties:
7020
+ id:
7021
+ type: string
7022
+ readOnly: true
7023
+ description: >
7024
+ The Node's ID.
7025
+ example: "12345-6aa78910bc"
7026
+ instance_id:
7027
+ type: integer
7028
+ description: >
7029
+ The Linode's ID. If no Linode is currently provisioned for this Node, this is `null`.
7030
+ example: 123456
7031
+ status:
7032
+ type: string
7033
+ description: >
7034
+ The creation status of this Node. This status is distinct from this Node's readiness as a
7035
+ Kubernetes Node Object as determined by the command `kubectl get nodes`.
7036
+
7037
+
7038
+ `not_ready` indicates that the Linode is still being created.
7039
+
7040
+
7041
+ `ready` indicates that the Linode has successfully been created and is running Kubernetes software.
7042
+ enum:
7043
+ - ready
7044
+ - not_ready
7045
+ example: ready
7046
+ default:
7047
+ $ref: '#/components/responses/ErrorResponse'
7048
+ x-code-samples:
7049
+ - lang: Shell
7050
+ source: >
7051
+ curl -H "Authorization: Bearer $TOKEN" \
7052
+ https://api.linode.com/v4/lke/clusters/12345/nodes/12345-6aa78910bc
7053
+ - lang: CLI
7054
+ source: >
7055
+ linode-cli lke node-view 123456 12345-6aa78910bc
7056
+ /lke/clusters/{clusterId}/nodes/{nodeId}/recycle:
7057
+ parameters:
7058
+ - name: clusterId
7059
+ in: path
7060
+ description: ID of the Kubernetes cluster containing the Node.
7061
+ required: true
7062
+ schema:
7063
+ type: integer
7064
+ - name: nodeId
7065
+ in: path
7066
+ description: ID of the Node to be recycled.
7067
+ required: true
7068
+ schema:
7069
+ type: string
7070
+ x-linode-cli-command: lke
7071
+ post:
7072
+ operationId: postLKEClusterNodeRecycle
7073
+ x-linode-cli-action: pool-recycle
7074
+ security:
7075
+ - personalAccessToken: []
7076
+ - oauth:
7077
+ - lke:read_write
7078
+ tags:
7079
+ - Linode Kubernetes Engine (LKE)
7080
+ summary: Node Recycle
7081
+ description: |
7082
+ Recycles an individual Node in the designated Kubernetes Cluster. The Node will be deleted
7083
+ and replaced with a new Linode, which may take a few minutes. Replacement Nodes are
7084
+ installed with the latest available patch for the Cluster's Kubernetes Version.
7085
+
7086
+ **Any local storage on deleted Linodes (such as "hostPath" and "emptyDir" volumes, or "local" PersistentVolumes) will be erased.**
7087
+ responses:
7088
+ '200':
7089
+ description: Recycle request succeeded and is in progress.
7090
+ content:
7091
+ application/json:
7092
+ schema:
7093
+ type: object
7094
+ default:
7095
+ $ref: '#/components/responses/ErrorResponse'
7096
+ x-code-samples:
7097
+ - lang: Shell
7098
+ source: >
7099
+ curl -H "Content-Type: application/json" \
7100
+ -H "Authorization: Bearer $TOKEN" \
7101
+ -X POST \
7102
+ https://api.linode.com/v4/lke/clusters/12345/nodes/12345-6aa78910bc/recycle
7103
+ - lang: CLI
7104
+ source: >
7105
+ linode-cli lke node-recycle 12345 12345-6aa78910bc
6921
7106
/lke/clusters/{clusterId}/api-endpoints:
6922
7107
parameters:
6923
7108
- name: clusterId
@@ -6976,7 +7161,7 @@ paths:
6976
7161
https://api.linode.com/v4/lke/clusters/12345/api-endpoints
6977
7162
- lang: CLI
6978
7163
source: >
6979
- linode-cli lke api-endpoint -list 12345
7164
+ linode-cli lke api-endpoints -list 12345
6980
7165
/lke/clusters/{clusterId}/kubeconfig:
6981
7166
parameters:
6982
7167
- name: clusterId
@@ -14167,7 +14352,7 @@ paths:
14167
14352
source: >
14168
14353
curl -H "Content-Type: application/json" \
14169
14354
-H "Authorization: Bearer $TOKEN" \
14170
- -X PUT -d '{
14355
+ -X POST -d '{
14171
14356
"label": "my-volume"
14172
14357
}' \
14173
14358
https://api.linode.com/v4/volumes/12345
0 commit comments