Skip to content

Commit

Permalink
Add a script to kill 50% of all pods
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker89 committed Aug 22, 2020
1 parent b21d522 commit b5c6a67
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/kubernetes/thanos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# A comic-book-villain-style killing
while :
do
date
kubectl get pods -l app=goldpinger -o name \
| sort --random-sort \
| head -n 1 \
| xargs kubectl delete
sleep 5
done

0 comments on commit b5c6a67

Please sign in to comment.