Use bundled kubectl and ctr rke2
rke2 ships its own kubectl/crictl/ctr under /var/lib/rancher/rke2/bin, not in $PATH by default
export PATH=$PATH:/var/lib/rancher/rke2/bin KUBECONFIG=/etc/rancher/rke2/rke2.yaml && rke2 ctr images ls
more rke2
all 2 commands →