Skip to content

Instantly share code, notes, and snippets.

@sharepointoscar
Last active February 16, 2025 22:08
Show Gist options
  • Save sharepointoscar/0c35e6fb9151a1967bd68253b1bf802f to your computer and use it in GitHub Desktop.
Save sharepointoscar/0c35e6fb9151a1967bd68253b1bf802f to your computer and use it in GitHub Desktop.
Minikube - Delete all pods from default namespace
# delete all pods
kubectl delete --all pods --namespace=default
# deete all deployments
kubectl delete --all deployments --namespace=default
# delete all services
kubectl delete --all services --namespace=default
@any-lia
Copy link

any-lia commented Nov 6, 2018

Hi,
you have to delete the controller, because everytime you delete your pods, the controller gonna respawn it.
kubectl delete replicationcontroller controllerName
kubernetes/kubernetes#26375 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment