Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kubectl cleanup pods

# I deleted the resources in the below order and it worked for me.

# To get all the resources.

kubectl get pods,services,deployments,jobs,daemonset

# Delete the resources like below:

kubectl delete deployments <deployment>
kubectl delete services <services>
kubectl delete pods <pods> --namespace=<namespace>
kubectl delete daemonset <daemonset>
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #kubectl #cleanup #pods
ADD COMMENT
Topic
Name
7+6 =