Skip to content

Commit

Permalink
add top command to get a feel of resources available
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Jindal <[email protected]>
  • Loading branch information
rajatjindal committed Mar 25, 2024
1 parent b82d2d8 commit 881fcb9
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 @@ -2,16 +2,23 @@

set -euo pipefail

top

## test that the workload pods can be terminated
NODE=`kubectl get pod $(kubectl get pod -l app=wasm-spin --no-headers | awk '{print $1}') --no-headers -o custom-columns=":spec.nodeName"`
echo "node is $NODE"

top

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

top

kubectl delete pod -l app=wasm-spin --timeout 20s || true

top

docker exec $CID ps -ef

kubectl describe pod -l app=wasm-spin
Expand Down

0 comments on commit 881fcb9

Please sign in to comment.