k3s
4 commands
4 shown
Install server without Traefik
Single-node k3s minus bundled Traefik/LB; bring your own ingress + MetalLB instead
curl -sfL https://get.k3s.io | sh -s - --disable traefik --disable servicelb
Init embedded etcd HA cluster
First server with embedded etcd HA; join more with --server https://<ip>:6443 same token
curl -sfL https://get.k3s.io | sh -s - server --cluster-init --token <id>
Join agent with URL and token
Add a worker; node-token lives on the server under /var/lib/rancher/k3s/server
curl -sfL https://get.k3s.io | K3S_URL=https://<ip>:6443 K3S_TOKEN=$(cat /var/lib/rancher/k3s/server/node-token) sh -
Inspect containers via crictl
Use bundled crictl/ctr to debug pods/images when kubectl is down; talks to containerd directly
k3s crictl ps -a && k3s ctr images ls -q
no commands match