k3d

runs K3s Kubernetes clusters in Docker

TLDR

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]"

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.

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.

INSTALL

brew install k3d
nix profile install nixpkgs#k3d

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)