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

K3s

$ k3s Foundation High Risk
Rancher / CNCF · Cloud & Infra · Apache-2.0 · linux

k3s bundles Kubernetes control-plane, containerd, Flannel, and embedded kubectl/crictl into one Linux binary. Agents use k3s check-config to verify host kernel readiness and k3s kubectl -o json for cluster queries.

FCRS-1.0 Score
70 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
https://github.com/k3s-io/k3s/releases
CLI vs MCP Decision CLI Only

k3s manages host-level Linux systemd daemons, cgroups, and embedded Kubernetes components where MCP has no equivalent.

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 16 / 25

Embedded k3s kubectl supports -o json, and config.yaml supports declarative startup, though k3s check-config and daemon commands lack --json and k3s server runs as a blocking daemon.

  • k3s check-config outputs text diagnostics only
  • Embedded k3s kubectl supports -o json
Trust & Safety 16 / 25

Single-host daemon setup requires root privileges and mutates host networking/iptables/systemd; lacks --dry-run on server or agent.

  • Requires root privileges and modifies host networking/cgroups
Setup & Portability 10 / 15

Zero-dependency single binary on Linux (x86_64, ARM64, ARMv7), but does not run natively on macOS or Windows.

  • Linux-only static binary
Utility & Efficiency 12 / 15

Packs a full CNCF-certified Kubernetes cluster, containerd, and kubectl into one lightweight ~70 MB binary.

  • Complete Kubernetes distribution in a single binary
Maintenance & Lineage 9 / 10

CNCF project (k3s-io/k3s) backed by Rancher/SUSE under Apache-2.0.

  • CNCF k3s-io/k3s repository
Docs & Verifiability 7 / 10

Extensive docs.k3s.io documentation, though subcommand help spans embedded multi-call binaries.

  • Official docs at docs.k3s.io

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Writes admin kubeconfig to /etc/rancher/k3s/k3s.yaml, node tokens to /var/lib/rancher/k3s/server/node-token, and reads /etc/rancher/k3s/config.yaml.

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

CLI and distribution are free (Apache-2.0); consumes host Linux compute/storage.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# K3s Agent Rules
- Run `k3s check-config` before installing or starting `k3s server`/`agent` on a Linux host.
- Prefer `/etc/rancher/k3s/config.yaml` over long inline CLI flags and keep `K3S_TOKEN` out of shell history.
- Never run `k3s-uninstall.sh` or `k3s-killall.sh` without explicit human approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate host kernel and cgroup readiness
k3s check-config

Audits Linux kernel modules, cgroups, and iptables prerequisites without starting a daemon.

Query node status via embedded kubectl
k3s kubectl get nodes -o json

Uses K3s's built-in kubectl against /etc/rancher/k3s/k3s.yaml to return JSON node state.

Controlled Writes & Previews

Run a K3s server via declarative config file
k3s server --config /etc/rancher/k3s/config.yaml

Starts the control plane using explicit YAML settings instead of ad-hoc CLI flags.

Strengths for Agents

  • + Single self-contained Linux binary includes server, agent, kubectl, crictl, and etcd-snapshot.
  • + Declarative /etc/rancher/k3s/config.yaml avoids brittle CLI flag chains.
  • + k3s check-config catches kernel and cgroup issues before cluster boot.

Caveats & Pitfalls

  • ! Linux-only (macos and windows require a Linux VM or k3d).
  • ! Running k3s server/agent requires root privileges, mutates host networking, and blocks in the foreground unless managed by systemd.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI