Skip to content

Commit

Permalink
check containerd logs
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Jindal <[email protected]>
  • Loading branch information
rajatjindal committed Mar 23, 2024
1 parent 652a07f commit 89c21de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/workloads-delete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ set -euo pipefail
kubectl delete pod -l app=wasm-spin --timeout 20s || true
kubectl describe pod -l app=wasm-spin

NODE=`kubectl get pod $(kubectl get pod -l app=wasm-spin --no-headers | grep -i Terminating | awk '{print $1}') --no-headers -o custom-columns=":spec.nodeName"`
echo "node is $NODE"

cid=`docker ps | grep "$NODE" | awk '{print $1}'`
echo "cid is $CID"

docker exec -it $cid tail -f /var/lib/rancher/k3s/agent/containerd/containerd.log

0 comments on commit 89c21de

Please sign in to comment.