← 返回命令列表

Linux command

k3d 命令

文本

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

常用示例

Create cluster

k3d cluster create [name]

Create with multiple nodes

k3d cluster create [name] --agents [3]

List clusters

k3d cluster list

Delete cluster

k3d cluster delete [name]

Start stopped cluster

k3d cluster start [name]

Create with port mapping

k3d cluster create [name] -p "[8080:80@loadbalancer]"

说明

k3d runs K3s Kubernetes clusters in Docker. It provides fast local Kubernetes environments for development. The tool manages multiple clusters easily. It maps ports and volumes from containers to host.

参数

cluster create _NAME_
Create new cluster.
cluster delete _NAME_
Delete cluster.
cluster list
List clusters.
cluster start _NAME_
Start cluster.
--agents _N_
Number of agent nodes.
-p _MAPPING_
Port mapping.
--help
Display help information.

FAQ

What is the k3d command used for?

k3d runs K3s Kubernetes clusters in Docker. It provides fast local Kubernetes environments for development. The tool manages multiple clusters easily. It maps ports and volumes from containers to host.

How do I run a basic k3d example?

Run `k3d cluster create [name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does cluster create _NAME_ do in k3d?

Create new cluster.