Check containers with crictl

Use the bundled crictl and ctr to debug pods and images when kubectl does not work. They talk 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 without the bundled Traefik and service LB. Bring your own ingress and MetalLB

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

    The first server with embedded etcd for HA. Join more servers with --server https://<ip>:6443 and the 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 is on the server in /var/lib/rancher/k3s/server

all 4 k3s commands