← 返回命令列表

Linux command

linode-cli-lke 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List clusters

linode-cli lke clusters-list

Create cluster

linode-cli lke cluster-create --label [my-cluster] --region [us-east] --k8s_version [1.28]

View cluster

linode-cli lke cluster-view [cluster_id]

Get kubeconfig

linode-cli lke kubeconfig-view [cluster_id] --text

List node pools

linode-cli lke pools-list [cluster_id]

Delete cluster

linode-cli lke cluster-delete [cluster_id]

Add a node pool to a cluster

linode-cli lke pool-create [cluster_id] --type [g6-standard-2] --count [3]

Recycle all nodes in a cluster

linode-cli lke cluster-nodes-recycle [cluster_id]

说明

linode-cli lke manages Linode Kubernetes Engine clusters. LKE provides managed Kubernetes. The tool creates clusters, manages node pools, and retrieves kubeconfig for kubectl access.

参数

clusters-list
List all clusters.
cluster-create
Create new cluster.
cluster-view _ID_
View cluster details.
kubeconfig-view _ID_
Get kubeconfig.
pools-list _ID_
List node pools.
cluster-delete _ID_
Delete cluster.
pool-create _ID_
Add a node pool to a cluster.
cluster-nodes-recycle _ID_
Recycle all nodes in a cluster.
--label _NAME_
Cluster name.
--region _REGION_
Datacenter region.
--k8s_version _VERSION_
Kubernetes version for the cluster.
--type _TYPE_
Linode instance type for node pool nodes.
--count _N_
Number of nodes in a node pool.
--text
Output in plain text format.
--json
Output in JSON format.
--help
Display help information.

FAQ

What is the linode-cli-lke command used for?

linode-cli lke manages Linode Kubernetes Engine clusters. LKE provides managed Kubernetes. The tool creates clusters, manages node pools, and retrieves kubeconfig for kubectl access.

How do I run a basic linode-cli-lke example?

Run `linode-cli lke clusters-list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does clusters-list do in linode-cli-lke?

List all clusters.