Rubén Lopez Lozoya
03/26/2021, 11:26 AMjohann
03/26/2021, 1:17 PMkubectl get job | grep -e dagster-run -e dagster-job | awk 'match($4,/[0-9]+d/) {print $1}' | xargs kubectl delete job
This deletes completed pods older than 1 day:
kubectl get pod | grep -e dagster-run -e dagster-job | awk 'match($3,/Completed/) {print $0}' | awk 'match($5,/[0-9]+d/) {print $1}' | xargs kubectl delete pod
Dagster Bot
03/26/2021, 1:21 PMRubén Lopez Lozoya
03/26/2021, 1:35 PMNoah K
03/26/2021, 2:24 PMRubén Lopez Lozoya
03/26/2021, 2:25 PM