You can simply run
kubectl delete all --all --all-namespaces
The first all
means the common resource kinds (pods, replicasets, deployments, ...)
kubectl get all == kubectl get pods,rs,deployments, ...
The second --all
means to select all resources of the selected kinds
Note that all
does not include:
In order to clean up perfectly,