@@ -6072,11 +6072,13 @@ paths:
6072
6072
servers:
6073
6073
- url: https://api.linode.com/v4beta
6074
6074
summary: Create Kubernetes Cluster
6075
- description: >
6075
+ description: |
6076
6076
Creates a Kubernetes cluster. The Kubernetes cluster will be created
6077
6077
asynchronously. You can use the events system to determine when the
6078
- Kubernetes cluster is ready to use.
6079
-
6078
+ Kubernetes cluster is ready to use. Please note that it often takes 2-5 minutes before the
6079
+ [Kubernetes API server endpoint](/api/v4/lke-clusters-cluster-id-api-endpoint) and
6080
+ the [Kubeconfig file](/api/v4/lke-clusters-cluster-id-kubeconfig) for the new cluster
6081
+ are ready.
6080
6082
6081
6083
**Beta**: This endpoint is in private beta. Please make sure to prepend all requests with
6082
6084
`/v4beta` instead of `/v4`, and be aware that this endpoint may receive breaking
@@ -6091,7 +6093,7 @@ paths:
6091
6093
required:
6092
6094
- label
6093
6095
- region
6094
- - version
6096
+ - k8s_version
6095
6097
- node_pools
6096
6098
allOf:
6097
6099
- $ref: '#/components/schemas/LKEClusterRequestBody'
@@ -6117,7 +6119,7 @@ paths:
6117
6119
-X POST -d '{
6118
6120
"label": "cluster12345",
6119
6121
"region": "us-central",
6120
- "version ": "1.16",
6122
+ "k8s_version ": "1.16",
6121
6123
"tags": ["ecomm", "blogs"],
6122
6124
"node_pools": [
6123
6125
{ "type": "g6-standard-4", "count": 6},
@@ -6130,7 +6132,7 @@ paths:
6130
6132
linode-cli lke cluster-create \
6131
6133
--label cluster12345 \
6132
6134
--region us-central \
6133
- --version 1.16 \
6135
+ --k8s_version 1.16 \
6134
6136
--node_pools.type g6-standard-4 --node_pools.count 6 \
6135
6137
--node_pools.type g6-standard-8 --node_pools.count 3 \
6136
6138
--tags ecomm
@@ -6248,8 +6250,8 @@ paths:
6248
6250
$ref: '#/components/schemas/LKECluster/properties/updated'
6249
6251
region:
6250
6252
$ref: '#/components/schemas/LKECluster/properties/region'
6251
- version :
6252
- $ref: '#/components/schemas/LKECluster/properties/version '
6253
+ k8s_version :
6254
+ $ref: '#/components/schemas/LKECluster/properties/k8s_version '
6253
6255
x-code-samples:
6254
6256
- lang: Shell
6255
6257
source: >
@@ -6585,6 +6587,73 @@ paths:
6585
6587
- lang: CLI
6586
6588
source: >
6587
6589
linode-cli lke pool-delete 12345 456
6590
+ /lke/clusters/{clusterId}/api-endpoints:
6591
+ parameters:
6592
+ - name: clusterId
6593
+ in: path
6594
+ description: ID of the Kubernetes cluster to look up.
6595
+ required: true
6596
+ schema:
6597
+ type: integer
6598
+ x-linode-cli-command: lke
6599
+ get:
6600
+ operationId: getLKEClusterAPIEndpoints
6601
+ x-linode-cli-action: api-endpoints-list
6602
+ security:
6603
+ - personalAccessToken: []
6604
+ - oauth:
6605
+ - lke:read_only
6606
+ tags:
6607
+ - Linode Kubernetes Engine (LKE)
6608
+ servers:
6609
+ - url: https://api.linode.com/v4beta
6610
+ summary: List Kubernetes API Endpoints
6611
+ description: >
6612
+ List the Kubernetes API server endpoints for this cluster. Please note that it often takes
6613
+ 2-5 minutes before the endpoint is ready after first [creating a new cluster](/api/v4/lke-clusters/#post).
6614
+
6615
+
6616
+ **Beta**: This endpoint is in private beta. Please make sure to prepend all requests with
6617
+ `/v4beta` instead of `/v4`, and be aware that this endpoint may receive breaking
6618
+ updates in the future. This notice will be removed when this endpoint is out of
6619
+ beta. Sign up for the beta [here](https://welcome.linode.com/lkebeta/).
6620
+ responses:
6621
+ '200':
6622
+ description: Returns the Kubernetes API server endpoints for this cluster.
6623
+ content:
6624
+ application/json:
6625
+ schema:
6626
+ type: object
6627
+ properties:
6628
+ data:
6629
+ type: array
6630
+ items:
6631
+ type: object
6632
+ description: >
6633
+ The Kubernetes API server endpoints for this cluster.
6634
+ properties:
6635
+ endpoint:
6636
+ type: string
6637
+ readOnly: true
6638
+ description: >
6639
+ A Kubernetes API server endpoint for this cluster.
6640
+ example: "https://192.0.2.1:6443"
6641
+ page:
6642
+ $ref: '#/components/schemas/PaginationEnvelope/properties/page'
6643
+ pages:
6644
+ $ref: '#/components/schemas/PaginationEnvelope/properties/pages'
6645
+ results:
6646
+ $ref: '#/components/schemas/PaginationEnvelope/properties/results'
6647
+ default:
6648
+ $ref: '#/components/responses/ErrorResponse'
6649
+ x-code-samples:
6650
+ - lang: Shell
6651
+ source: >
6652
+ curl -H "Authorization: Bearer $TOKEN" \
6653
+ https://api.linode.com/v4beta/lke/clusters/12345/api-endpoints
6654
+ - lang: CLI
6655
+ source: >
6656
+ linode-cli lke api-endpoint-list 12345
6588
6657
/lke/clusters/{clusterId}/api-endpoint:
6589
6658
parameters:
6590
6659
- name: clusterId
@@ -6606,8 +6675,13 @@ paths:
6606
6675
servers:
6607
6676
- url: https://api.linode.com/v4beta
6608
6677
summary: View Kubernetes API Endpoint
6609
- description: >
6610
- Get the Kubernetes API server endpoint for this cluster.
6678
+ description: |
6679
+ Get the Kubernetes API server endpoint for this cluster. Please note that it often takes
6680
+ 2-5 minutes before the endpoint is ready after first
6681
+ [creating a new cluster](/api/v4/lke-clusters/#post).
6682
+
6683
+ **Note** This endpoint will be deprecated in favor of
6684
+ [List Kubernetes API Endpoints](/api/v4/lke-clusters-cluster-id-api-endpoints).
6611
6685
6612
6686
6613
6687
**Beta**: This endpoint is in private beta. Please make sure to prepend all requests with
@@ -6659,9 +6733,9 @@ paths:
6659
6733
servers:
6660
6734
- url: https://api.linode.com/v4beta
6661
6735
summary: View Kubeconfig
6662
- description: >
6663
- Get the Kubeconfig file for a Cluster.
6664
-
6736
+ description: |
6737
+ Get the Kubeconfig file for a Cluster. Please note that it often takes 2-5 minutes before
6738
+ the Kubeconfig file is ready after first [creating a new cluster](/api/v4/lke-clusters/#post).
6665
6739
6666
6740
**Beta**: This endpoint is in private beta. Please make sure to prepend all requests with
6667
6741
`/v4beta` instead of `/v4`, and be aware that this endpoint may receive breaking
@@ -15700,7 +15774,7 @@ components:
15700
15774
type: string
15701
15775
description: This Kubernetes cluster's location.
15702
15776
example: us-central
15703
- version :
15777
+ k8s_version :
15704
15778
type: string
15705
15779
description: >
15706
15780
The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>,
@@ -15718,7 +15792,7 @@ components:
15718
15792
required:
15719
15793
- label
15720
15794
- region
15721
- - version
15795
+ - k8s_version
15722
15796
LKECluster:
15723
15797
type: object
15724
15798
# Note that LKECluster inherits all properties of
@@ -15748,16 +15822,13 @@ components:
15748
15822
# LKEClusterRequestBody but otherwise inherit all of the original
15749
15823
# sub-properties.
15750
15824
label:
15751
- x-linode-filterable: true
15752
15825
x-linode-cli-display: 2
15753
15826
example: lkecluster12345
15754
15827
region:
15755
15828
readOnly: true
15756
- x-linode-filterable: true
15757
15829
x-linode-cli-display: 3
15758
15830
example: us-central
15759
- version:
15760
- x-linode-filterable: true
15831
+ k8s_version:
15761
15832
example: "1.16"
15762
15833
tags:
15763
15834
example:
@@ -15812,11 +15883,10 @@ components:
15812
15883
readOnly: true
15813
15884
properties:
15814
15885
id:
15815
- type: number
15886
+ type: string
15816
15887
description: >
15817
15888
The Node's ID.
15818
- x-linode-filterable: true
15819
- example: 123456
15889
+ example: "123456"
15820
15890
instance_id:
15821
15891
type: string
15822
15892
description: >
0 commit comments