LKE
This section details LKE-related Linode CLI commands.
regenerate
Regenerate the Kubeconfig file and/or the service account token for a Cluster.
Usage
The format accepted by this command.
linode-cli lke regenerate [-h] [--kubeconfig kubeconfig]
[--servicetoken servicetoken] clusterId
Sample
Examples of how this command might be used.
linode-cli lke regenerate 12345 \
--kubeconfig true \
--servicetoken true
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the target Kubernetes cluster. |
Arguments
Additional fields used to execute this request.
Name |
Type |
Example |
Description |
---|---|---|---|
--kubeconfig |
bool |
true |
Whether to delete and regenerate the Kubeconfig file for this Cluster. |
--servicetoken |
bool |
true |
Whether to delete and regenerate the service access token for this Cluster. |
api-endpoints-list
List the Kubernetes API server endpoints for this cluster.
Usage
The format accepted by this command.
linode-cli lke api-endpoints-list [-h] [--order-by {}]
[--order {asc,desc}] clusterId
Sample
Examples of how this command might be used.
linode-cli lke api-endpoints-list 12345
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
endpoint |
str |
https://192.0.2.1:6443 |
A Kubernetes API server endpoint for this cluster. |
cluster-view
Get a specific Cluster by ID.
Usage
The format accepted by this command.
linode-cli lke cluster-view [-h] [--label label]
[--k8s_version k8s_version] [--region region] [--tags [tags] ]
[--order-by {label,k8s_version,region,tags}]
[--order {asc,desc}] clusterId
Sample
Examples of how this command might be used.
linode-cli lke cluster-view 12345
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
created |
str |
2019-09-12T21:25:30Z |
When this Kubernetes cluster was created. |
id |
int |
1234 |
This Kubernetes cluster’s unique ID. |
k8s_version |
str |
1.27 |
The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>, and the latest supported patch version will be deployed. |
label |
str |
lkecluster12345 |
This Kubernetes cluster’s unique label for display purposes only. |
region |
str |
us-central |
This Kubernetes cluster’s location. |
tags |
[]str |
[“ecomm”, “blogs”] |
An array of tags applied to the Kubernetes cluster. |
updated |
str |
2019-09-13T21:24:16Z |
When this Kubernetes cluster was updated. |
control_plane
Name |
Type |
Example |
Description |
---|---|---|---|
control_plane.high_availability |
bool |
true |
Defines whether High Availability is enabled for the Control Plane Components of the cluster. |
cluster-create
Creates a Kubernetes cluster.
Usage
The format accepted by this command.
linode-cli lke cluster-create [-h] [--tags tags]
[--region region] [--label label]
[--control_plane.high_availability high_availability]
[--k8s_version k8s_version] [--node_pools node_pools]
[--node_pools.taints taints]
[--node_pools.taints.value value]
[--node_pools.taints.key key]
[--node_pools.taints.effect effect]
[--node_pools.disks disks] [--node_pools.count count]
[--node_pools.tags tags] [--node_pools.type type]
[--node_pools.labels.value value]
[--node_pools.labels.key key]
[--node_pools.autoscaler.enabled enabled]
[--node_pools.autoscaler.max max]
[--node_pools.autoscaler.min min]
Sample
Examples of how this command might be used.
linode-cli lke cluster-create \
--label cluster12345 \
--region us-central \
--k8s_version 1.27 \
--control_plane.high_availability true \
--node_pools.type g6-standard-4 --node_pools.count 6 \
--node_pools.type g6-standard-8 --node_pools.count 3 \
--node_pools.autoscaler.enabled true \
--node_pools.autoscaler.max 12 \
--node_pools.autoscaler.min 3 \
--tags ecomm
Arguments
Additional fields used to execute this request.
Name |
Type |
Example |
Description |
---|---|---|---|
--k8s_version * |
str |
1.27 |
The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>, and the latest supported patch version will be deployed. |
--label * |
str |
lkecluster12345 |
This Kubernetes cluster’s unique label for display purposes only. |
--region * |
str |
us-central |
This Kubernetes cluster’s location. |
--node_pools (section) |
json |
N/A |
Specifies a collection of Linodes which will be members of a Kubernetes cluster. |
--tags |
[]str |
ecomm |
An array of tags applied to the Kubernetes cluster. |
--control_plane.high_availability |
bool |
true |
Defines whether High Availability is enabled for the Control Plane Components of the cluster. |
node_pools
Name |
Type |
Example |
Description |
---|---|---|---|
--node_pools.count * |
int |
6 |
The number of nodes in the Node Pool. |
--node_pools.type * |
str |
g6-standard-4 |
The Linode Type for all of the nodes in the Node Pool. |
--node_pools.autoscaler.enabled |
bool |
true |
Whether autoscaling is enabled for this Node Pool. |
--node_pools.autoscaler.max |
int |
12 |
The maximum number of nodes to autoscale to. |
--node_pools.autoscaler.min |
int |
3 |
The minimum number of nodes to autoscale to. |
--node_pools.disks |
json |
N/A |
This field should be omitted except for special use cases. |
--node_pools.labels.key |
str |
example.com/my-app |
The Kubernetes label key. |
--node_pools.labels.value |
str |
teams |
The Kubernetes label value. |
--node_pools.tags |
json |
[“example ta…er example”] |
An array of tags applied to this object. |
--node_pools.taints (section) |
json |
N/A |
N/A |
node_pools.taints
Name |
Type |
Example |
Description |
---|---|---|---|
--node_pools.taints.effect * |
str |
NoSchedule |
The Kubernetes taint effect. |
--node_pools.taints.key * |
str |
example.com/my-app |
The Kubernetes taint key. |
--node_pools.taints.value * |
str |
teamC |
The Kubernetes taint value. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
created |
str |
2019-09-12T21:25:30Z |
When this Kubernetes cluster was created. |
id |
int |
1234 |
This Kubernetes cluster’s unique ID. |
k8s_version |
str |
1.27 |
The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>, and the latest supported patch version will be deployed. |
label |
str |
lkecluster12345 |
This Kubernetes cluster’s unique label for display purposes only. |
region |
str |
us-central |
This Kubernetes cluster’s location. |
tags |
[]str |
[“ecomm”, “blogs”] |
An array of tags applied to the Kubernetes cluster. |
updated |
str |
2019-09-13T21:24:16Z |
When this Kubernetes cluster was updated. |
control_plane
Name |
Type |
Example |
Description |
---|---|---|---|
control_plane.high_availability |
bool |
true |
Defines whether High Availability is enabled for the Control Plane Components of the cluster. |
cluster-update
Updates a Kubernetes cluster.
Usage
The format accepted by this command.
linode-cli lke cluster-update [-h] [--label label]
[--k8s_version k8s_version]
[--control_plane.high_availability high_availability]
[--tags tags] clusterId
Sample
Examples of how this command might be used.
linode-cli lke cluster-update 12345 \
--label lkecluster54321 \
--control_plane.high_availability true \
--k8s_version 1.27 \
--tags ecomm \
--tags blog \
--tags prod \
--tags monitoring
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
Arguments
Additional fields used to execute this request.
Name |
Type |
Example |
Description |
---|---|---|---|
--k8s_version |
str |
N/A |
The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>. |
--label |
str |
lkecluster12345 |
This Kubernetes cluster’s unique label for display purposes only. |
--tags |
[]str |
prod |
An array of tags applied to the Kubernetes cluster. |
--control_plane.high_availability |
bool |
true |
Defines whether High Availability is enabled for the Control Plane Components of the cluster. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
created |
str |
2019-09-12T21:25:30Z |
When this Kubernetes cluster was created. |
k8s_version |
str |
1.27 |
The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>, and the latest supported patch version will be deployed. |
label |
str |
lkecluster12345 |
This Kubernetes cluster’s unique label for display purposes only. |
region |
str |
us-central |
This Kubernetes cluster’s location. |
tags |
[]str |
[“prod”, “mon…mm”, “blog”] |
An array of tags applied to the Kubernetes cluster. |
updated |
str |
2019-09-13T21:24:16Z |
When this Kubernetes cluster was updated. |
cluster-delete
Deletes a Cluster you have permission to read_write
.
Usage
The format accepted by this command.
linode-cli lke cluster-delete [-h] clusterId
Sample
Examples of how this command might be used.
linode-cli lke cluster-delete 12345
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
cluster-dashboard-url
Get a Kubernetes Dashboard access URL for this Cluster, which enables performance of administrative tasks through a web interface.
Usage
The format accepted by this command.
linode-cli lke cluster-dashboard-url [-h] [--order-by {}]
[--order {asc,desc}] clusterId
Sample
Examples of how this command might be used.
linode-cli lke cluster-dashboard-url 12345
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
url |
str |
https://examp…inodelke.net |
The Cluster Dashboard access URL. |
cluster-nodes-recycle
Recycles all nodes in all pools of a designated Kubernetes Cluster.
Usage
The format accepted by this command.
linode-cli lke cluster-nodes-recycle [-h] clusterId
Sample
Examples of how this command might be used.
linode-cli lke cluster-nodes-recycle 12345
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster which contains nodes to be recycled. |
clusters-list
Lists current Kubernetes clusters available on your account.
Usage
The format accepted by this command.
linode-cli lke clusters-list [-h] [--k8s_version k8s_version]
[--label label] [--region region] [--tags [tags] ]
[--order-by {k8s_version,label,region,tags}]
[--order {asc,desc}]
Sample
Examples of how this command might be used.
linode-cli lke clusters-list
Filterable Attributes
Arguments used to define a filter for response entries.
Name |
Type |
Description |
---|---|---|
--k8s_version |
str |
The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>, and the latest supported patch version will be deployed. |
--label |
str |
This Kubernetes cluster’s unique label for display purposes only. |
--region |
str |
This Kubernetes cluster’s location. |
--tags |
[]str |
An array of tags applied to the Kubernetes cluster. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
created |
str |
2019-09-12T21:25:30Z |
When this Kubernetes cluster was created. |
id |
int |
1234 |
This Kubernetes cluster’s unique ID. |
k8s_version |
str |
1.27 |
The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>, and the latest supported patch version will be deployed. |
label |
str |
lkecluster12345 |
This Kubernetes cluster’s unique label for display purposes only. |
region |
str |
us-central |
This Kubernetes cluster’s location. |
tags |
[]str |
[“ecomm”, “blogs”] |
An array of tags applied to the Kubernetes cluster. |
updated |
str |
2019-09-13T21:24:16Z |
When this Kubernetes cluster was updated. |
control_plane
Name |
Type |
Example |
Description |
---|---|---|---|
control_plane.high_availability |
bool |
true |
Defines whether High Availability is enabled for the Control Plane Components of the cluster. |
kubeconfig-view
Get the Kubeconfig file for a Cluster.
Usage
The format accepted by this command.
linode-cli lke kubeconfig-view [-h] [--order-by {}]
[--order {asc,desc}] clusterId
Sample
Examples of how this command might be used.
linode-cli lke kubeconfig-view 12345
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
kubeconfig |
str |
N/A |
The Base64-encoded Kubeconfig file for this Cluster. |
kubeconfig-delete
Delete and regenerate the Kubeconfig file for a Cluster.
Usage
The format accepted by this command.
linode-cli lke kubeconfig-delete [-h] clusterId
Sample
Examples of how this command might be used.
linode-cli lke kubeconfig-delete 12345
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
node-view
Returns the values for a specified node object.
Usage
The format accepted by this command.
linode-cli lke node-view [-h] [--order-by {}]
[--order {asc,desc}] clusterId nodeId
Sample
Examples of how this command might be used.
linode-cli lke node-view 123456 12345-6aa78910bc
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster containing the Node. |
nodeId |
int |
The ID of the Node to access. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
id |
str |
12345-6aa78910bc |
The Node’s ID. |
instance_id |
int |
123456 |
The Linode’s ID. |
status |
str |
ready |
The creation status of this Node. |
node-delete
Deletes a specific Node from a Node Pool.
Usage
The format accepted by this command.
linode-cli lke node-delete [-h] clusterId nodeId
Sample
Examples of how this command might be used.
linode-cli lke node-delete 12345 12345-6aa78910bc
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster containing the Node. |
nodeId |
int |
The ID of the Node to access. |
node-recycle
Recycles an individual Node in the designated Kubernetes Cluster.
Usage
The format accepted by this command.
linode-cli lke node-recycle [-h] clusterId nodeId
Sample
Examples of how this command might be used.
linode-cli lke node-recycle 12345 12345-6aa78910bc
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster containing the Node. |
nodeId |
str |
ID of the Node to be recycled. |
pool-view
Get a specific Node Pool by ID.
Usage
The format accepted by this command.
linode-cli lke pool-view [-h] [--id id] [--tags [tags] ]
[--order-by {id,tags}] [--order {asc,desc}] clusterId poolId
Sample
Examples of how this command might be used.
linode-cli lke pool-view 12345 456
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
poolId |
int |
ID of the Pool to look up. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
count |
int |
6 |
The number of nodes in the Node Pool. |
id |
int |
456 |
This Node Pool’s unique ID. |
tags |
[]str |
[“example ta…er example”] |
An array of tags applied to this object. |
type |
str |
g6-standard-4 |
The Linode Type for all of the nodes in the Node Pool. |
autoscaler
Name |
Type |
Example |
Description |
---|---|---|---|
autoscaler.enabled |
bool |
true |
Whether autoscaling is enabled for this Node Pool. |
autoscaler.max |
int |
12 |
The maximum number of nodes to autoscale to. |
autoscaler.min |
int |
3 |
The minimum number of nodes to autoscale to. |
disks
Name |
Type |
Example |
Description |
---|---|---|---|
disks.size |
int |
1024 |
The size of this custom disk partition in MB. |
disks.type |
str |
ext-4 |
This custom disk partition’s filesystem type. |
labels
Name |
Type |
Example |
Description |
---|---|---|---|
labels.key |
str |
example.com/my-app |
The Kubernetes label key. |
labels.value |
str |
teamUSA |
The Kubernetes label value. |
nodes
Name |
Type |
Example |
Description |
---|---|---|---|
nodes.id |
str |
123456 |
The Node’s ID. |
nodes.instance_id |
str |
123458 |
The Linode’s ID. |
nodes.status |
str |
ready |
The Node’s status as it pertains to being a Kubernetes node. |
taints
Name |
Type |
Example |
Description |
---|---|---|---|
taints.effect |
str |
NoSchedule |
The Kubernetes taint effect. |
taints.key |
str |
example.com/my-app |
The Kubernetes taint key. |
taints.value |
str |
teamC |
The Kubernetes taint value. |
pool-create
Creates a new Node Pool for the designated Kubernetes cluster.
Usage
The format accepted by this command.
linode-cli lke pool-create [-h] [--labels.key key]
[--labels.value value] [--type type] [--autoscaler.max max]
[--autoscaler.min min] [--autoscaler.enabled enabled]
[--count count] [--disks disks] [--taints taints]
[--taints.value value] [--taints.key key]
[--taints.effect effect] [--tags tags] clusterId
Sample
Examples of how this command might be used.
linode-cli lke pool-create 12345 \
--type g6-standard-4 \
--count 6 \
--tags example-tag \
--autoscaler.enabled true \
--autoscaler.max 12 \
--autoscaler.min 3
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
Arguments
Additional fields used to execute this request.
Name |
Type |
Example |
Description |
---|---|---|---|
--count * |
int |
6 |
The number of nodes in the Node Pool. |
--type * |
str |
g6-standard-4 |
The Linode Type for all of the nodes in the Node Pool. |
--disks |
json |
N/A |
This field should be omitted except for special use cases. |
--tags |
[]str |
example tag |
An array of tags applied to this object. |
--taints (section) |
json |
N/A |
N/A |
--autoscaler.enabled |
bool |
true |
Whether autoscaling is enabled for this Node Pool. |
--autoscaler.max |
int |
12 |
The maximum number of nodes to autoscale to. |
--autoscaler.min |
int |
3 |
The minimum number of nodes to autoscale to. |
--labels.key |
str |
example.com/my-app |
The Kubernetes label key. |
--labels.value |
str |
teams |
The Kubernetes label value. |
taints
Name |
Type |
Example |
Description |
---|---|---|---|
--taints.effect * |
str |
NoSchedule |
The Kubernetes taint effect. |
--taints.key * |
str |
example.com/my-app |
The Kubernetes taint key. |
--taints.value * |
str |
teamC |
The Kubernetes taint value. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
count |
int |
6 |
The number of nodes in the Node Pool. |
id |
int |
456 |
This Node Pool’s unique ID. |
tags |
[]str |
[“example ta…er example”] |
An array of tags applied to this object. |
type |
str |
g6-standard-4 |
The Linode Type for all of the nodes in the Node Pool. |
autoscaler
Name |
Type |
Example |
Description |
---|---|---|---|
autoscaler.enabled |
bool |
true |
Whether autoscaling is enabled for this Node Pool. |
autoscaler.max |
int |
12 |
The maximum number of nodes to autoscale to. |
autoscaler.min |
int |
3 |
The minimum number of nodes to autoscale to. |
disks
Name |
Type |
Example |
Description |
---|---|---|---|
disks.size |
int |
1024 |
The size of this custom disk partition in MB. |
disks.type |
str |
ext-4 |
This custom disk partition’s filesystem type. |
labels
Name |
Type |
Example |
Description |
---|---|---|---|
labels.key |
str |
example.com/my-app |
The Kubernetes label key. |
labels.value |
str |
teamUSA |
The Kubernetes label value. |
nodes
Name |
Type |
Example |
Description |
---|---|---|---|
nodes.id |
str |
123456 |
The Node’s ID. |
nodes.instance_id |
str |
123458 |
The Linode’s ID. |
nodes.status |
str |
ready |
The Node’s status as it pertains to being a Kubernetes node. |
taints
Name |
Type |
Example |
Description |
---|---|---|---|
taints.effect |
str |
NoSchedule |
The Kubernetes taint effect. |
taints.key |
str |
example.com/my-app |
The Kubernetes taint key. |
taints.value |
str |
teamC |
The Kubernetes taint value. |
pool-update
Updates a node pool’s count, labels and taints, and autoscaler configuration.
Usage
The format accepted by this command.
linode-cli lke pool-update [-h] [--labels.value value]
[--labels.key key] [--autoscaler.enabled enabled]
[--autoscaler.min min] [--autoscaler.max max] [--count count]
[--taints taints] [--taints.value value] [--taints.key key]
[--taints.effect effect] clusterId poolId
Sample
Examples of how this command might be used.
linode-cli lke pool-update 12345 456 \
--count 6 \
--autoscaler.enabled true \
--autoscaler.max 12 \
--autoscaler.min 3
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
poolId |
int |
ID of the Pool to look up. |
Arguments
Additional fields used to execute this request.
Name |
Type |
Example |
Description |
---|---|---|---|
--count |
int |
6 |
The number of nodes in the Node Pool. |
--taints (section) |
json |
N/A |
N/A |
--autoscaler.enabled |
bool |
true |
Whether autoscaling is enabled for this Node Pool. |
--autoscaler.max |
int |
12 |
The maximum number of nodes to autoscale to. |
--autoscaler.min |
int |
3 |
The minimum number of nodes to autoscale to. |
--labels.key |
str |
example.com/my-app |
The Kubernetes label key. |
--labels.value |
str |
teams |
The Kubernetes label value. |
taints
Name |
Type |
Example |
Description |
---|---|---|---|
--taints.effect * |
str |
NoSchedule |
The Kubernetes taint effect. |
--taints.key * |
str |
example.com/my-app |
The Kubernetes taint key. |
--taints.value * |
str |
teamC |
The Kubernetes taint value. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
count |
int |
6 |
The number of nodes in the Node Pool. |
id |
int |
456 |
This Node Pool’s unique ID. |
tags |
[]str |
[“example ta…er example”] |
An array of tags applied to this object. |
type |
str |
g6-standard-4 |
The Linode Type for all of the nodes in the Node Pool. |
autoscaler
Name |
Type |
Example |
Description |
---|---|---|---|
autoscaler.enabled |
bool |
true |
Whether autoscaling is enabled for this Node Pool. |
autoscaler.max |
int |
12 |
The maximum number of nodes to autoscale to. |
autoscaler.min |
int |
3 |
The minimum number of nodes to autoscale to. |
disks
Name |
Type |
Example |
Description |
---|---|---|---|
disks.size |
int |
1024 |
The size of this custom disk partition in MB. |
disks.type |
str |
ext-4 |
This custom disk partition’s filesystem type. |
labels
Name |
Type |
Example |
Description |
---|---|---|---|
labels.key |
str |
example.com/my-app |
The Kubernetes label key. |
labels.value |
str |
teamUSA |
The Kubernetes label value. |
nodes
Name |
Type |
Example |
Description |
---|---|---|---|
nodes.id |
str |
123456 |
The Node’s ID. |
nodes.instance_id |
str |
123458 |
The Linode’s ID. |
nodes.status |
str |
ready |
The Node’s status as it pertains to being a Kubernetes node. |
taints
Name |
Type |
Example |
Description |
---|---|---|---|
taints.effect |
str |
NoSchedule |
The Kubernetes taint effect. |
taints.key |
str |
example.com/my-app |
The Kubernetes taint key. |
taints.value |
str |
teamC |
The Kubernetes taint value. |
pool-delete
Delete a specific Node Pool from a Kubernetes cluster.
Usage
The format accepted by this command.
linode-cli lke pool-delete [-h] clusterId poolId
Sample
Examples of how this command might be used.
linode-cli lke pool-delete 12345 456
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
poolId |
int |
ID of the Pool to look up. |
pool-recycle
Recycles a Node Pool for the designated Kubernetes Cluster.
Usage
The format accepted by this command.
linode-cli lke pool-recycle [-h] clusterId poolId
Sample
Examples of how this command might be used.
linode-cli lke pool-recycle 12345 456
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster this Node Pool is attached to. |
poolId |
int |
ID of the Node Pool to be recycled. |
pools-list
Returns all active Node Pools on a Kubernetes cluster.
Usage
The format accepted by this command.
linode-cli lke pools-list [-h] [--order-by {}]
[--order {asc,desc}] clusterId
Sample
Examples of how this command might be used.
linode-cli lke pools-list 12345
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the Kubernetes cluster to look up. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
id |
str |
N/A |
N/A |
type |
str |
N/A |
N/A |
nodes
Name |
Type |
Example |
Description |
---|---|---|---|
nodes.id |
str |
N/A |
N/A |
nodes.instance_id |
str |
N/A |
N/A |
nodes.status |
str |
N/A |
N/A |
service-token-delete
Delete and regenerate the service account token for a Cluster.
Usage
The format accepted by this command.
linode-cli lke service-token-delete [-h] clusterId
Sample
Examples of how this command might be used.
linode-cli lke service-token-delete 12345
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
clusterId |
int |
ID of the target Kubernetes cluster. |
version-view
View a Kubernetes version available for deployment to a Kubernetes cluster.
Usage
The format accepted by this command.
linode-cli lke version-view [-h] [--order-by {}]
[--order {asc,desc}] version
Sample
Examples of how this command might be used.
linode-cli lke version-view 1.27
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
version |
str |
The LKE version to view. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
id |
str |
1.27 |
A Kubernetes version number available for deployment to a Kubernetes cluster in the format of <major>.<minor>, and the latest supported patch version. |
versions-list
List the Kubernetes versions available for deployment to a Kubernetes cluster.
Usage
The format accepted by this command.
linode-cli lke versions-list [-h] [--order-by {}]
[--order {asc,desc}]
Sample
Examples of how this command might be used.
linode-cli lke versions-list
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
id |
str |
1.27 |
A Kubernetes version number available for deployment to a Kubernetes cluster in the format of <major>.<minor>, and the latest supported patch version. |