Skip to content

Instantly share code, notes, and snippets.

@sharepointoscar
Last active November 25, 2023 18:47
Show Gist options
  • Star 29 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • 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
@MohanNagendraKumar
Copy link

still i am unable to delete my pods from my namespace

@Slayug
Copy link

Slayug 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