Inspect container CRI metadata

Dump runtime info, cgroup path, mounts and pid for a CRI container kubectl can't show

crictl inspect <id> | jq '.info'

tool
crictl3 commands
tags
crictlk8sdebugtroubleshooting

More crictl commands

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

    Clean up orphaned NotReady pod sandboxes the kubelet failed to GC; node-level recovery

  • crictl rmi --prune

    Reclaim disk by deleting images not referenced by any container; safe node disk-pressure fix

all 3 crictl commands