Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete completed kubernetes pod

$ kubectl get pods | grep Completed | awk '{print $1}' | xargs kubectl delete pod
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #completed #kubernetes #pod
ADD COMMENT
Topic
Name
1+2 =