mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 18:18:26 +00:00
feat(taskfiles): send out the cops to clear pods!
This commit is contained in:
@@ -119,6 +119,16 @@ tasks:
|
||||
- |-
|
||||
kubectl get crds -o jsonpath='{range .items[*]}{.spec.names.kind}: {.spec.names.shortNames}{"\n"}{end}'
|
||||
|
||||
clear-old-pods:
|
||||
aliases: [cop]
|
||||
desc: Clears all old pods remaining after a reboot
|
||||
cmds:
|
||||
- |-
|
||||
while true; do
|
||||
kubectl delete pod -A --field-selector=status.phase==Failed || true;
|
||||
kubectl delete pod -A --field-selector=status.phase==Succeeded || true;
|
||||
done
|
||||
|
||||
iperf2:
|
||||
desc: Start a iperf2 server on one node, and iperf2 client on another node, to benchmark network performance.
|
||||
dir: "/{{.ROOT_DIR}}/.taskfiles/k8s/template/iperf2"
|
||||
|
||||
Reference in New Issue
Block a user