LinuxCommandLibrary

k3d

TLDR

Create cluster

$ k3d cluster create [name]
copy
Create with multiple nodes
$ k3d cluster create [name] --agents [3]
copy
List clusters
$ k3d cluster list
copy
Delete cluster
$ k3d cluster delete [name]
copy
Start stopped cluster
$ k3d cluster start [name]
copy
Create with port mapping
$ k3d cluster create [name] -p "[8080:80@loadbalancer]"
copy

SYNOPSIS

k3d command [options]

DESCRIPTION

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.
k3d runs K3s in Docker.

PARAMETERS

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.

CAVEATS

Requires Docker. Development focused. Not for production.

HISTORY

k3d was created by Rancher to simplify running K3s in Docker containers for local Kubernetes development.

SEE ALSO

k3s(1), kubectl(1), kind(1), docker(1)

Copied to clipboard