Self-hosted K3s Kubernetes. Use for install/config, HA etcd, disabling traefik/flannel, custom CNI (Calico/Cilium), registries.yaml, airgap/INSTALL_K3S_SKIP_DOWNLOAD, server flags, NixOS modules.
Ships in k3s. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
K3s is a CNCF-certified Kubernetes distribution built for edge, IoT, and resource-constrained environments. Single binary (~70MB), embeds containerd, SQLite (single-node) or etcd (HA).
| Path | Purpose |
|---|---|
/etc/rancher/k3s/config.yaml | Server/agent configuration |
/etc/rancher/k3s/config.yaml.d/*.yaml | Drop-in config fragments |
/etc/rancher/k3s/registries.yaml | Private registry mirrors + auth |
/etc/rancher/k3s/k3s.yaml | Kubeconfig (default mode 0600) |
/var/lib/rancher/k3s/ | K3s state directory |
/var/lib/rancher/k3s/agent/images/ | Airgap image tarballs |
/var/lib/rancher/k3s/agent/containerd/ | Containerd runtime data |
/var/lib/rancher/k3s/server/manifests/ | Auto-deploy manifests |
# Standard install
curl -sfL https://get.k3s.io | sh -
# With options
curl -sfL https://get.k3s.io | K3S_TOKEN=SECRET sh -s - server \
--cluster-init --write-kubeconfig-mode=0644 --disable=traefik
# Agent join
curl -sfL https://get.k3s.io | K3S_TOKEN=SECRET K3S_URL=https://server:6443 sh -
# Airgap (binary pre-placed)
INSTALL_K3S_SKIP_DOWNLOAD=true ./install.sh
| Flag | Default | Purpose |
|---|---|---|
--flannel-backend | vxlan | Set to none for custom CNI |
--disable | — | Skip bundled components (traefik, servicelb, local-storage) |
--disable-network-policy | false | Required when using external CNI |
--cluster-cidr | 10.42.0.0/16 | Pod network CIDR |
--service-cidr | 10.43.0.0/16 | Service network CIDR |
--cluster-init | false | Enable embedded etcd for HA |
--write-kubeconfig-mode | 0600 | Kubeconfig file permissions |
--data-dir | /var/lib/rancher/k3s | State directory |
--tls-san | — | Additional SANs for API server cert |
Disable Flannel and built-in network policy to use external CNI:
# /etc/rancher/k3s/config.yaml
flannel-backend: "none"
disable-network-policy: true
disable:
- traefik
- servicelb
Then deploy Calico via tigera-operator Helm chart. See references/networking.md.
| File | Content |
|---|---|
references/installation.md | Install methods, config file format, server/agent flags, environment variables |
references/airgap.md | Airgap methods A/B/C, image pre-loading, custom CNI airgap |
references/airgap-advanced.md | Airgap upgrades, Kustomize imagePullPolicy, NixOS airgap integration |
references/networking.md | Flannel backends, custom CNI enablement, Calico/tigera setup, dual-stack |
references/registries.md | registries.yaml format, mirror/auth/TLS examples |
references/registries-advanced.md | Combined registry examples, troubleshooting pulls, NixOS integration |
references/ha-etcd.md | HA embedded etcd, cluster init, node joining, backup/restore |
references/troubleshooting.md | Diagnostics, common issues, containerd/kubelet, reset/uninstall |
references/troubleshooting-nixos.md | NixOS-specific K3s troubleshooting patterns |
nixos skill for K3s NixOS modules, flake composition, airgap image bundling with Nixrook-ceph or rook-ceph-single skill for Ceph block storage on K3skustomize and helm skills for chart templating and overlaysargocd skill for ApplicationSets and sync configurationcalico skill covers NetworkPolicy, BGP, Felix tuning (when available)config.yaml (opens in a new tab)references/airgap-advanced.md (opens in a new tab)references/airgap.md (opens in a new tab)references/ha-etcd.md (opens in a new tab)references/installation.md (opens in a new tab)references/networking.md (opens in a new tab)references/registries-advanced.md (opens in a new tab)references/registries.md (opens in a new tab)references/troubleshooting-nixos.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/k3s:k3sfrom k3s
npx claudepluginhub kettleofketchup/kettleofskills --plugin k3s