Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

k3d

$ k3d Community Low Risk
k3d-io / Rancher · Cloud & Infra · MIT · macos / linux / windows

k3d 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.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
brew install k3d
CLI vs MCP Decision CLI Preferred vs MCP

k3d manages local k3s Docker containers and kubeconfigs with -o json directly on the workstation.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Supports -o json on list subcommands and --no-progress for clean non-interactive logs.

  • Supports -o json (--output json) and --no-progress
Trust & Safety 22 / 25

Local-only Docker blast radius plus --kubeconfig-update-default=false protects existing cluster contexts.

  • Local Docker-scoped clusters with kubeconfig isolation flags
Setup & Portability 14 / 15

Single static Go binary via Homebrew or release binary, requiring only local Docker.

  • Static Go binary requiring Docker
Utility & Efficiency 12 / 15

Sub-30-second k3s cluster startup makes iterative Kubernetes testing very fast.

  • Lightweight k3s containers boot far faster than full k8s
Maintenance & Lineage 8 / 10

Maintained under k3d-io/k3d (SUSE/Rancher community ecosystem) under MIT.

  • Official k3d-io/k3d repository
Docs & Verifiability 7 / 10

Good k3d.io docs and --help, though some flags vary across v5 minor releases.

  • Docs at k3d.io/stable/

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Requires no cloud credentials; uses local Docker socket and writes cluster contexts to ~/.kube/config (or --kubeconfig-update-default=false).

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

100% open-source (MIT) and runs locally with zero cloud charges.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List local k3d clusters in JSON
k3d cluster list -o json

Lists k3d clusters, server/agent node counts, and running status as JSON.

Get isolated kubeconfig for a k3d cluster
k3d kubeconfig get dev

Prints the cluster's kubeconfig YAML to stdout without mutating ~/.kube/config.

Controlled Writes & Previews

Create a local cluster without altering default kubeconfig
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 json works cleanly on cluster list, node list, and registry list.
  • + --kubeconfig-update-default=false keeps ~/.kube/config safe.

Caveats & Pitfalls

  • ! k3s defaults (Traefik, ServiceLB) differ slightly from upstream kubeadm clusters like kind.
  • ! Requires Docker daemon access.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI