Table of Contents

# K3d

Install latest K3d

wget -q -O \
- https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash

Create cluster

default cluster

k3d cluster create

create a cluster with port 80 exposed and specify kubernetes api port

k3d cluster create \
--api-port "127.0.0.1:6443" \
--port '80:80@loadbalancer' \
--port '433:443@loadbalancer' \
-v /home/davidhsaiou/registries.yaml:/etc/rancher/k3s/registries.yaml \
-v '/home/davidhsaiou/storage:/var/lib/rancher/k3s/storage'

for private registry

-v /root/registries.yaml:/etc/rancher/k3s/registries.yaml

for storage

-v /storage/k3d:/var/lib/rancher/k3s/storage