Skip to content

Deep Learning Computing CI/CD Framework (II)

Delete all non-running PODs

1
2
3
kubectl get pod --all-namespaces | \
awk '{if ($4 != "Running") \
system ("kubectl -n " $1 " delete pods " $2  " --grace-period=0 " " --force ")}'

References