devops,

Deep Learning Computing CI/CD Framework (II)

Wen-Chieh-Lee Wen-Chieh-Lee Follow Aug 22, 2020 · 1 min read
Deep Learning Computing CI/CD Framework (II)
Share this

Delete all non-running PODs

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

References

Wen-Chieh-Lee
Written by Wen-Chieh-Lee
Senior Software Architect