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

tool
k3s4 commands
tags
k3sdebugtroubleshooting

More k3s commands

  • curl -sfL https://get.k3s.io | sh -s - --disable traefik --disable servicelb

    Single-node k3s minus bundled Traefik/LB; bring your own ingress + MetalLB instead

  • curl -sfL https://get.k3s.io | sh -s - server --cluster-init --token <id>

    First server with embedded etcd HA; join more with --server https://<ip>:6443 same token

  • curl -sfL https://get.k3s.io | K3S_URL=https://<ip>:6443 K3S_TOKEN=$(cat /var/lib/rancher/k3s/server/node-token) sh -

    Add a worker; node-token lives on the server under /var/lib/rancher/k3s/server

all 4 k3s commands