k3d
$ k3d Community Low Riskk3d wraps Rancher's lightweight k3s distribution inside Docker containers, spinning up local multi-node Kubernetes clusters in seconds with -o json (--output json) on cluster list, node list, and registry list, plus --no-progress.
brew install k3d k3d manages local k3s Docker containers and kubeconfigs with -o json directly on the workstation.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -o json on list subcommands and --no-progress for clean non-interactive logs.
- Supports
-o json(--output json) and--no-progress
Local-only Docker blast radius plus --kubeconfig-update-default=false protects existing cluster contexts.
- Local Docker-scoped clusters with kubeconfig isolation flags
Single static Go binary via Homebrew or release binary, requiring only local Docker.
- Static Go binary requiring Docker
Sub-30-second k3s cluster startup makes iterative Kubernetes testing very fast.
- Lightweight k3s containers boot far faster than full k8s
Maintained under k3d-io/k3d (SUSE/Rancher community ecosystem) under MIT.
- Official
k3d-io/k3drepository
Good k3d.io docs and --help, though some flags vary across v5 minor releases.
- Docs at k3d.io/stable/
Security, Auth & Guardrails
Requires no cloud credentials; uses local Docker socket and writes cluster contexts to ~/.kube/config (or --kubeconfig-update-default=false).
100% open-source (MIT) and runs locally with zero cloud charges.
# k3d Agent Rules - Always pass `-o json` on `cluster list`, `node list`, and `registry list`. - Pass `--kubeconfig-update-default=false` (or `k3d kubeconfig write`) to avoid hijacking default `~/.kube/config`. - Specify explicit cluster names on `k3d cluster delete <name>`; avoid `--all`.
Agent-Ready Command Recipes
Safe Read-Only Queries
k3d cluster list -o json
Lists k3d clusters, server/agent node counts, and running status as JSON.
k3d kubeconfig get dev
Prints the cluster's kubeconfig YAML to stdout without mutating ~/.kube/config.
Controlled Writes & Previews
k3d cluster create agent-dev --kubeconfig-update-default=false --no-progress
Spins up a local k3s cluster cleanly in CI/headless mode while leaving ~/.kube/config untouched.
Strengths for Agents
- + Very fast local Kubernetes startup powered by k3s.
- +
-o jsonworks cleanly oncluster list,node list, andregistry list. - +
--kubeconfig-update-default=falsekeeps~/.kube/configsafe.
Caveats & Pitfalls
- ! k3s defaults (Traefik, ServiceLB) differ slightly from upstream kubeadm clusters like
kind. - ! Requires Docker daemon access.