Summary

k3d is a lightweight wrapper to run k3s (Rancher Lab’s minimal Kubernetes distribution) in docker.

k3d install

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

create cluster

k3d cluster create sandman \
            -p 8080:80@loadbalancer \
            -v /etc/machine-id:/etc/machine-id:ro \
            -v /var/log/journal:/var/log/journal:ro \
            -v /var/run/docker.sock:/var/run/docker.sock \
           --k3s-arg "--disable=traefik@server:0" \
            --agents 0