Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active January 9, 2026 21:51
Show Gist options
  • Select an option

  • Save ihcsim/3dc8c79bc52f97b5fb122a4d35ce12ae to your computer and use it in GitHub Desktop.

Select an option

Save ihcsim/3dc8c79bc52f97b5fb122a4d35ce12ae to your computer and use it in GitHub Desktop.

To view etcd logs using crictl:

$ sudo /var/lib/rancher/rke2/bin/crictl --runtime-endpoint /run/k3s/containerd/containerd.sock ps -a | grep -i etcd
bf290fb65f79c       405516f27f18a       3 minutes ago       Running             etcd                                  8                   e720a5d2a0f71       etcd-isim-dev                                           kube-system

$ sudo /var/lib/rancher/rke2/bin/crictl --runtime-endpoint /run/k3s/containerd/containerd.sock logs bf290fb65f79c

RKE2 kubelet logs located at /var/lib/rancher/rke2/agent/logs/kubelet.log.

To delete stuck guest-rke2 guest cluster in Rancher, manually delete machines.cluster.x-k8s.io from the fleet-default namespace by removing their stuck finalizers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment