Force-remove stuck pod sandboxes

Remove orphaned NotReady pod sandboxes that the kubelet did not clean up. A fix on the node level

crictl rmp -f $(crictl pods -q --state NotReady)

tool
crictl3 commands
tags
crictlk8stroubleshootingdebug

More crictl commands

  • crictl rmi --prune

    Free disk space by deleting images that no container uses. A safe fix for disk pressure on a node

  • crictl inspect <id> | jq '.info'

    Show runtime info, cgroup path, mounts and pid of a container. kubectl cannot show these

all 3 crictl commands