Skip to content

Instantly share code, notes, and snippets.

@vorlon001
Created May 24, 2026 15:54
Show Gist options
  • Select an option

  • Save vorlon001/819d17279c869efed56def6e7876603d to your computer and use it in GitHub Desktop.

Select an option

Save vorlon001/819d17279c869efed56def6e7876603d to your computer and use it in GitHub Desktop.
How to fix "podSandboxID" in kubeadm reset
3b49f595b50eaf18bffa39b9947fc4849b99168eb544b7162e043bb615c1b"
E0524 09:11:18.700308    9165 remote_runtime.go:267] "StopPodSandbox from runtime service failed" err="rpc error: code = DeadlineExceeded desc = context deadline exceeded" podSandboxID="841aa4b68acc9e7e88f6d8772d308cd84e2e3855e506942a518789e83b20dedc"
# Остановить все контейнеры
ctr -n k8s.io containers list | awk '{print $1}' | xargs -r ctr -n k8s.io containers kill

# Удалить все контейнеры
ctr -n k8s.io containers list | awk '{print $1}' | xargs -r ctr -n k8s.io containers delete

# Удалить все задачи
ctr -n k8s.io tasks list | awk '{print $1}' | xargs -r ctr -n k8s.io tasks kill

# Учистить все образы
ctr -n k8s.io images ls | awk '{print $1}' | xargs -r ctr -n k8s.io images rm

# Перезапуск containerd:
systemctl restart containerd


systemctl stop containerd

# Очистить директорию containerd
rm -rf /var/lib/containerd/*

# Запустить containerd
systemctl start containerd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment